diff --git a/java/src/test/java/ai/rapids/cudf/CudaTest.java b/java/src/test/java/ai/rapids/cudf/CudaTest.java index 2edd7f36cb7..9aaa9cee916 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-2023, NVIDIA CORPORATION. + * Copyright (c) 2021-2024, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package ai.rapids.cudf; -import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -34,13 +33,13 @@ public void testGetCudaRuntimeInfo() { assertEquals(Cuda.getNativeComputeMode(), Cuda.getComputeMode().nativeId); } - @Tag("noSanitizer") @Test public void testCudaException() { assertThrows(CudaException.class, () -> { try { - Cuda.memset(Long.MAX_VALUE, (byte) 0, 1024); - } catch (CudaFatalException ignored) { + Cuda.freePinned(-1L); + } catch (CudaFatalException fatalEx) { + throw new AssertionError("Expected UnFatalError but got FatalError: " + fatalEx); } catch (CudaException ex) { assertEquals(CudaException.CudaError.cudaErrorInvalidValue, ex.getCudaError()); throw ex;