test_swap: parent sleep before exit to make sure child has pageout data

Signed-off-by: Wenchao Hao <haowenchao@xiaomi.com>
This commit is contained in:
Wenchao Hao 2024-11-20 14:55:42 +08:00
parent 3af77ad384
commit 288e3078f5
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ int main()
if (pid) {
munmap(p, SIZE);
sleep(3);
return 0;
}