@@ -344,9 +344,11 @@ HdmiCecSink_L2Test::HdmiCecSink_L2Test()
344
344
createFile (" /tmp/pwrmgr_restarted" , " 2" );
345
345
346
346
struct stat buffer;
347
- bool fileExists = (stat (" /tmp/pwrmgr_restarted" , &buffer) == 0 );
348
- printf (" [TEST DEBUG] Standby fixture: /tmp/pwrmgr_restarted exists = %s\n " ,
349
- fileExists ? " YES" : " NO" );
347
+ printf (" [TEST DEBUG] Standby fixture: ls /tmp/pwrmgr_restarted output:\n " );
348
+ int lsResult = system (" ls -l /tmp/pwrmgr_restarted" );
349
+ if (lsResult != 0 ) {
350
+ printf (" [TEST DEBUG] /tmp/pwrmgr_restarted does NOT exist\n " );
351
+ }
350
352
351
353
// Add sleep to ensure file is properly written to disk
352
354
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
@@ -546,10 +548,11 @@ HdmiCecSink_L2Test_STANDBY::HdmiCecSink_L2Test_STANDBY()
546
548
// Add sleep to ensure file is properly written to disk
547
549
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
548
550
549
- struct stat buffer;
550
- bool fileExists = (stat (" /tmp/pwrmgr_restarted" , &buffer) == 0 );
551
- printf (" [TEST DEBUG] Standby fixture: /tmp/pwrmgr_restarted exists = %s\n " ,
552
- fileExists ? " YES" : " NO" );
551
+ printf (" [TEST DEBUG] Standby fixture: ls /tmp/pwrmgr_restarted output:\n " );
552
+ int lsResult = system (" ls -l /tmp/pwrmgr_restarted" );
553
+ if (lsResult != 0 ) {
554
+ printf (" [TEST DEBUG] /tmp/pwrmgr_restarted does NOT exist\n " );
555
+ }
553
556
554
557
EXPECT_CALL (*p_powerManagerHalMock, PLAT_DS_INIT ())
555
558
.WillOnce (::testing::Return (DEEPSLEEPMGR_SUCCESS));
0 commit comments