diff options
| -rwxr-xr-x[-rw-r--r--] | tools/testing/selftests/locking/ww_mutex.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/locking/ww_mutex.sh b/tools/testing/selftests/locking/ww_mutex.sh index 2c3d6b1878c2..91e4ac7566af 100644..100755 --- a/tools/testing/selftests/locking/ww_mutex.sh +++ b/tools/testing/selftests/locking/ww_mutex.sh | |||
| @@ -1,6 +1,14 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | |||
| 4 | # Kselftest framework requirement - SKIP code is 4. | ||
| 5 | ksft_skip=4 | ||
| 6 | |||
| 3 | # Runs API tests for struct ww_mutex (Wait/Wound mutexes) | 7 | # Runs API tests for struct ww_mutex (Wait/Wound mutexes) |
| 8 | if ! /sbin/modprobe -q -n test-ww_mutex; then | ||
| 9 | echo "ww_mutex: module test-ww_mutex is not found [SKIP]" | ||
| 10 | exit $ksft_skip | ||
| 11 | fi | ||
| 4 | 12 | ||
| 5 | if /sbin/modprobe -q test-ww_mutex; then | 13 | if /sbin/modprobe -q test-ww_mutex; then |
| 6 | /sbin/modprobe -q -r test-ww_mutex | 14 | /sbin/modprobe -q -r test-ww_mutex |
