diff --git a/kernel_lite/time_posix/src/AlarmTest.cpp b/kernel_lite/time_posix/src/AlarmTest.cpp index acc82b82f6c0aed4de96f41dfd0916c8972b130f..35d5dbd3c311cb470e1d940748c663e3c2346f7b 100755 --- a/kernel_lite/time_posix/src/AlarmTest.cpp +++ b/kernel_lite/time_posix/src/AlarmTest.cpp @@ -360,6 +360,7 @@ HWTEST_F(AlarmTest, testTimerCreateFork, Function | MediumTest | Level2) Msleep(setMillisec + ACCURACY_ERROR); EXPECT_EQ(mReceivedSignal, SIGALRM); WaitProcExitedOK(pid); + EXPECT_EQ(timer_delete(tid), 0) << "ERROR: timer_delete() != 0"; } }