kfdtest: fix KFDIPCTest on gfx1xxx

hsaKmtAllocMemory with mflags.HostAccess=1 will fail on desktop gfx1xxx GPU
because it's small bar PCIe. Remove this flag.

Child process exit status should use current_test_info, not unit test
info.



Change-Id: I060f23aa98a42251921d003878e70a409c92a4de
Signed-off-by: Philip Yang <Philip.Yang@amd.com>


[ROCm/ROCR-Runtime commit: 413979c319]
This commit is contained in:
Philip Yang
2021-07-29 14:29:02 -04:00
parent 820e03bd4c
commit e826288132
@@ -57,7 +57,7 @@ KFDIPCTest::~KFDIPCTest(void) {
* starts the next test while the parent is still active.
*/
if (m_ChildPid == 0)
exit(::testing::UnitTest::GetInstance()->failed_test_count());
exit(::testing::UnitTest::GetInstance()->current_test_info()->result()->Failed());
}
/* Import shared Local Memory from parent process. Check for the pattern
@@ -203,7 +203,6 @@ TEST_F(KFDIPCTest, BasicTest) {
/* Create a child process and share the above Local Memory with it */
mflags.ui32.NonPaged = 1;
mflags.ui32.CoarseGrain = 1;
mflags.ui32.HostAccess = 1;
m_ChildPid = fork();
if (m_ChildPid == 0)