.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * tools/testing/selftests/kvm/lib/assert.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2018, Google LLC. |
---|
5 | | - * |
---|
6 | | - * This work is licensed under the terms of the GNU GPL, version 2. |
---|
7 | 6 | */ |
---|
8 | 7 | |
---|
9 | 8 | #define _GNU_SOURCE /* for getline(3) and strchrnul(3)*/ |
---|
.. | .. |
---|
13 | 12 | #include <execinfo.h> |
---|
14 | 13 | #include <sys/syscall.h> |
---|
15 | 14 | |
---|
16 | | -#include "../../kselftest.h" |
---|
| 15 | +#include "kselftest.h" |
---|
17 | 16 | |
---|
18 | 17 | /* Dumps the current stack trace to stderr. */ |
---|
19 | 18 | static void __attribute__((noinline)) test_dump_stack(void); |
---|
.. | .. |
---|
83 | 82 | } |
---|
84 | 83 | va_end(ap); |
---|
85 | 84 | |
---|
86 | | - if (errno == EACCES) |
---|
87 | | - ksft_exit_skip("Access denied - Exiting.\n"); |
---|
| 85 | + if (errno == EACCES) { |
---|
| 86 | + print_skip("Access denied - Exiting"); |
---|
| 87 | + exit(KSFT_SKIP); |
---|
| 88 | + } |
---|
88 | 89 | exit(254); |
---|
89 | 90 | } |
---|
90 | 91 | |
---|