diff options
Diffstat (limited to 'tools/testing/selftests/mqueue/mq_perf_tests.c')
-rw-r--r-- | tools/testing/selftests/mqueue/mq_perf_tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 8188f72de93c..b019e0b8221c 100644 --- a/tools/testing/selftests/mqueue/mq_perf_tests.c +++ b/tools/testing/selftests/mqueue/mq_perf_tests.c | |||
@@ -39,6 +39,8 @@ | |||
39 | #include <popt.h> | 39 | #include <popt.h> |
40 | #include <error.h> | 40 | #include <error.h> |
41 | 41 | ||
42 | #include "../kselftest.h" | ||
43 | |||
42 | static char *usage = | 44 | static char *usage = |
43 | "Usage:\n" | 45 | "Usage:\n" |
44 | " %s [-c #[,#..] -f] path\n" | 46 | " %s [-c #[,#..] -f] path\n" |
@@ -626,12 +628,10 @@ int main(int argc, char *argv[]) | |||
626 | cpus_to_pin[0] = cpus_online - 1; | 628 | cpus_to_pin[0] = cpus_online - 1; |
627 | } | 629 | } |
628 | 630 | ||
629 | if (getuid() != 0) { | 631 | if (getuid() != 0) |
630 | fprintf(stderr, "Not running as root, but almost all tests " | 632 | ksft_exit_skip("Not running as root, but almost all tests " |
631 | "require root in order to modify\nsystem settings. " | 633 | "require root in order to modify\nsystem settings. " |
632 | "Exiting.\n"); | 634 | "Exiting.\n"); |
633 | exit(1); | ||
634 | } | ||
635 | 635 | ||
636 | max_msgs = fopen(MAX_MSGS, "r+"); | 636 | max_msgs = fopen(MAX_MSGS, "r+"); |
637 | max_msgsize = fopen(MAX_MSGSIZE, "r+"); | 637 | max_msgsize = fopen(MAX_MSGSIZE, "r+"); |