mirror of
https://github.com/openharmony/linux_frame_aware_sched.git
synced 2026-07-19 17:23:36 -04:00
Add rtg_interface test thread life time
Signed-off-by: Dai Li <daili12@huawei.com>
This commit is contained in:
@@ -495,7 +495,7 @@ HWTEST_F(RtgInterfaceTest, RtgInterfaceAddMultipleThreads, TestSize.Level1)
|
||||
pid[i] = fork();
|
||||
ASSERT_TRUE(pid[i] >= 0) << "> parent: fork errno = " << errno;
|
||||
if (pid[i] == 0) {
|
||||
usleep(3000);
|
||||
usleep(50000);
|
||||
_Exit(0);
|
||||
}
|
||||
threads.push_back(pid[i]);
|
||||
@@ -523,7 +523,7 @@ HWTEST_F(RtgInterfaceTest, RtgInterfaceAddMultipleThreadsOutOfLimit, TestSize.Le
|
||||
pid[i] = fork();
|
||||
ASSERT_TRUE(pid[i] >= 0) << "> parent: fork errno = " << errno;
|
||||
if (pid[i] == 0) {
|
||||
usleep(3000);
|
||||
usleep(50000);
|
||||
_Exit(0);
|
||||
}
|
||||
threads.push_back(pid[i]);
|
||||
|
||||
Reference in New Issue
Block a user