kfdtest: fix dispatch pointers and event leaks tests
KFDDBGTest and KFDNegative test can eat into memory and event resources
for subsequent test interations if unallocated.
Change-Id: Iea170c20df8d487703441181b6c152b61f02d3db
[ROCm/ROCR-Runtime commit: 26d338df12]
This commit is contained in:
1 parent
f27d995211
commit
4b7e1d79b7
2 file changed
+11
-5
No files matched your search
@@ -95,6 +95,7 @@ TEST_F(KFDNegativeTest, BasicPipeReset) {
|
||||
EXPECT_EQ(resetEvent->EventData.EventType, HSA_EVENTTYPE_HW_EXCEPTION);
|
||||
|
||||
LOG() << "Child ==> Complete" << std::endl;
|
||||
|
||||
exit(0);
|
||||
} else {
|
||||
int childStatus = 0;
|
||||
@@ -125,6 +126,7 @@ TEST_F(KFDNegativeTest, BasicPipeReset) {
|
||||
EXPECT_TRUE(WaitOnValue(destBuf.As<unsigned int*>(), 0));
|
||||
|
||||
hsaKmtDestroyEvent(event);
|
||||
hsaKmtDestroyEvent(resetEvent);
|
||||
EXPECT_SUCCESS(queue.Destroy());
|
||||
|
||||
LOG() << "Parent ==> Complete" << std::endl;
|
||||
|
||||
Reference in new issue
Block a user