kfdtest: fix error injection failure in RAS test
1. umc error injection only accepts parameter "0 0". 2. flush output to file in order to make writing happen immediately. Change-Id: I8d3bde287caee6b90b6eec56c760f5a228be7595 Signed-off-by: Eric Huang <JinhuiEric.Huang@amd.com>
This commit is contained in:
@@ -138,8 +138,9 @@ TEST_F(KFDRASTest, BasicTest) {
|
||||
return;
|
||||
}
|
||||
|
||||
// write an uncorrectable error injection at address 1 as value 1
|
||||
fwrite("inject umc ue 1 1", sizeof(char), 17, m_pFile);
|
||||
// write an uncorrectable error injection at address 0 as value 0
|
||||
fwrite("inject umc ue 0 0", sizeof(char), 17, m_pFile);
|
||||
fflush(m_pFile);
|
||||
|
||||
EXPECT_SUCCESS(hsaKmtWaitOnEvent(m_pRasEvent, g_TestTimeOut));
|
||||
|
||||
@@ -170,7 +171,8 @@ TEST_F(KFDRASTest, MixEventsTest) {
|
||||
|
||||
EXPECT_SUCCESS(hsaKmtWaitOnEvent(pHsaEvent, g_TestTimeOut));
|
||||
|
||||
fwrite("inject umc ue 1 1", sizeof(char), 17, m_pFile);
|
||||
fwrite("inject umc ue 0 0", sizeof(char), 17, m_pFile);
|
||||
fflush(m_pFile);
|
||||
|
||||
EXPECT_SUCCESS(hsaKmtWaitOnEvent(m_pRasEvent, g_TestTimeOut));
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user