Skip to content

Commit

Permalink
Identify each test variation in linux.clone test output (#6522)
Browse files Browse the repository at this point in the history
The output is basically the same for each test variation, making it hard
to correlate each test's output with the test's code.
  • Loading branch information
xdje42 authored Dec 21, 2023
1 parent 4e6ad10 commit 86a4f1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suite/tests/linux/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ static void *stack;
void
test_thread(bool share_sighand, bool clone_vm, bool use_clone3)
{
print("%s(share_sighand %d, clone_vm %d, use_clone3 %d)\n", __FUNCTION__,
share_sighand, clone_vm, use_clone3);
if (use_clone3) {
#ifdef SYS_clone3
child = create_thread_clone3(run_with_exit, &stack, share_sighand, clone_vm);
Expand Down
6 changes: 6 additions & 0 deletions suite/tests/linux/clone.expect
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test_thread(share_sighand 0, clone_vm 0, use_clone3 0)
Sideline thread started
i = 2500000
i = 5000000
Expand All @@ -11,6 +12,7 @@ i = 22500000
i = 25000000
Sideline thread finished
Child has exited
test_thread(share_sighand 0, clone_vm 0, use_clone3 1)
Sideline thread started
i = 2500000
i = 5000000
Expand All @@ -24,6 +26,7 @@ i = 22500000
i = 25000000
Sideline thread finished
Child has exited
test_thread(share_sighand 0, clone_vm 1, use_clone3 0)
Sideline thread started
i = 2500000
i = 5000000
Expand All @@ -37,6 +40,7 @@ i = 22500000
i = 25000000
Sideline thread finished
Child has exited
test_thread(share_sighand 0, clone_vm 1, use_clone3 1)
Sideline thread started
i = 2500000
i = 5000000
Expand All @@ -50,6 +54,7 @@ i = 22500000
i = 25000000
Sideline thread finished
Child has exited
test_thread(share_sighand 1, clone_vm 1, use_clone3 0)
Sideline thread started
i = 2500000
i = 5000000
Expand All @@ -63,6 +68,7 @@ i = 22500000
i = 25000000
Sideline thread finished
Child has exited
test_thread(share_sighand 1, clone_vm 1, use_clone3 1)
Sideline thread started
i = 2500000
i = 5000000
Expand Down

0 comments on commit 86a4f1b

Please sign in to comment.