Skip to content

Commit 51ad5b5

Browse files
keesshuahkh
authored andcommitted
selftests/clone3: Reorder reporting output
Selftest output reporting was happening before the TAP headers and plan had been emitted. Move the first test reports later. Acked-by: Christian Brauner <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 63aa57f commit 51ad5b5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

tools/testing/selftests/clone3/clone3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ int main(int argc, char *argv[])
131131

132132
uid_t uid = getuid();
133133

134-
test_clone3_supported();
135134
ksft_print_header();
136135
ksft_set_plan(17);
136+
test_clone3_supported();
137137

138138
/* Just a simple clone3() should return 0.*/
139139
test_clone3(0, 0, 0, CLONE3_ARGS_NO_TEST);

tools/testing/selftests/clone3/clone3_clear_sighand.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ static void test_clone3_clear_sighand(void)
119119
int main(int argc, char **argv)
120120
{
121121
ksft_print_header();
122-
test_clone3_supported();
123-
124122
ksft_set_plan(1);
123+
test_clone3_supported();
125124

126125
test_clone3_clear_sighand();
127126

tools/testing/selftests/clone3/clone3_set_tid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ int main(int argc, char *argv[])
157157
pid_t set_tid[MAX_PID_NS_LEVEL * 2];
158158

159159
ksft_print_header();
160-
test_clone3_supported();
161160
ksft_set_plan(29);
161+
test_clone3_supported();
162162

163163
if (pipe(pipe_1) < 0 || pipe(pipe_2) < 0)
164164
ksft_exit_fail_msg("pipe() failed\n");

0 commit comments

Comments
 (0)