From 56d00d71ab8fa6e166a34da3026e6043c68c4c15 Mon Sep 17 00:00:00 2001 From: sperlingxx Date: Wed, 13 Apr 2022 17:38:05 +0800 Subject: [PATCH] revert JNI --- java/src/test/java/ai/rapids/cudf/CudaTest.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/java/src/test/java/ai/rapids/cudf/CudaTest.java b/java/src/test/java/ai/rapids/cudf/CudaTest.java index f5af2b02fc5..8905c2edd56 100644 --- a/java/src/test/java/ai/rapids/cudf/CudaTest.java +++ b/java/src/test/java/ai/rapids/cudf/CudaTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022, NVIDIA CORPORATION. + * Copyright (c) 2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; public class CudaTest { @@ -32,17 +32,4 @@ public void testGetCudaRuntimeInfo() { assertEquals(Cuda.getNativeComputeMode(), Cuda.getComputeMode().nativeId); } - @Test - public void testCudaException() { - assertThrows(CudaException.class, () -> { - try { - Cuda.memset(Long.MAX_VALUE, (byte) 0, 1024); - } catch (CudaException ex) { - assertEquals(CudaException.CudaError.cudaErrorInvalidValue, ex.cudaError); - assertFalse(ex.isFatal()); - throw ex; - } - } - ); - } }