From a67ef3e675b6176ca4f94c481815ed284915a3d1 Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Fri, 13 Dec 2019 11:17:02 -0500 Subject: [PATCH] kfdtest: Rename two exception test cases The old names are not accurate enough and we rename them according to their corresponding fault types. Change-Id: Icf4d52ba0ab9d49af5d912a0feb82665b1e8d344 Signed-off-by: Yong Zhao [ROCm/ROCR-Runtime commit: f7c0172385a602898f9e8d54e64a991a9f21b735] --- .../tests/kfdtest/scripts/kfdtest.exclude | 14 +++++++------- .../tests/kfdtest/src/KFDExceptionTest.cpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/projects/rocr-runtime/tests/kfdtest/scripts/kfdtest.exclude b/projects/rocr-runtime/tests/kfdtest/scripts/kfdtest.exclude index ca2cbb5c5b..ea43c27168 100644 --- a/projects/rocr-runtime/tests/kfdtest/scripts/kfdtest.exclude +++ b/projects/rocr-runtime/tests/kfdtest/scripts/kfdtest.exclude @@ -90,8 +90,8 @@ SDMA_BLACKLIST=\ # Anything involving CP queue creation is failing on Kaveri. Separate them here for convenience (KFD-336) KV_QUEUE_BLACKLIST=\ -"KFDExceptionTest.InvalidBadAddress:"\ -"KFDExceptionTest.InvalidWriteAddress:"\ +"KFDExceptionTest.AddressFault:"\ +"KFDExceptionTest.PermissionFault:"\ "KFDLocalMemoryTest.*:"\ "KFDEventTest.Signal*Event*:"\ "KFDQMTest.CreateQueueStressSingleThreaded:"\ @@ -122,7 +122,7 @@ FILTER[hawaii]=\ FILTER[carrizo]=\ "$BLACKLIST_ALL_ASICS:"\ "$SDMA_BLACKLIST:"\ -"KFDExceptionTest.InvalidWriteAddress" +"KFDExceptionTest.PermissionFault" # KFDPerfCountersTest.*Trace fail (KFD-339) # KFDMemoryTest.QueryPointerInfo/MemoryRegister* (KFD-341) @@ -172,8 +172,8 @@ FILTER[vega20]=\ "$BLACKLIST_ALL_ASICS:"\ "$SDMA_BLACKLIST:"\ "KFDEvictTest.BurstyTest:"\ -"KFDExceptionTest.InvalidBadAddress:"\ -"KFDExceptionTest.InvalidWriteAddress:"\ +"KFDExceptionTest.AddressFault:"\ +"KFDExceptionTest.PermissionFault:"\ "KFDQMTest.GPUDoorbellWrite" FILTER[raven]=\ @@ -199,8 +199,8 @@ FILTER[navi10]=\ "KFDEvictTest.BurstyTest:"\ "KFDEvictTest.QueueTest:"\ "KFDPerfCountersTest.*:"\ -"KFDExceptionTest.InvalidBadAddress:"\ -"KFDExceptionTest.InvalidWriteAddress:"\ +"KFDExceptionTest.AddressFault:"\ +"KFDExceptionTest.PermissionFault:"\ "KFDQMTest.GPUDoorbellWrite" FILTER[navi14]=\ diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp index 1a25e4cad4..6656317304 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDExceptionTest.cpp @@ -114,7 +114,7 @@ queuefail: } /* Test Bad Address access in a child process */ -TEST_F(KFDExceptionTest, InvalidBadAddress) { +TEST_F(KFDExceptionTest, AddressFault) { TEST_REQUIRE_ENV_CAPABILITIES(ENVCAPS_64BITLINUX); TEST_START(TESTPROFILE_RUNALL); @@ -158,7 +158,7 @@ TEST_F(KFDExceptionTest, InvalidBadAddress) { /* Allocate Read Only buffer. Test Memory Exception failure by * attempting to write to that buffer in the child process. */ -TEST_F(KFDExceptionTest, InvalidWriteAddress) { +TEST_F(KFDExceptionTest, PermissionFault) { TEST_REQUIRE_ENV_CAPABILITIES(ENVCAPS_64BITLINUX); TEST_START(TESTPROFILE_RUNALL)