secgateway/kernel/linux-4.14.83/tools/testing/selftests/locking/ww_mutex.sh

12 lines
283 B
Bash
Raw Normal View History

2019-06-11 07:43:23 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs API tests for struct ww_mutex (Wait/Wound mutexes)
if /sbin/modprobe -q test-ww_mutex; then
/sbin/modprobe -q -r test-ww_mutex
echo "locking/ww_mutex: ok"
else
echo "locking/ww_mutex: [FAIL]"
exit 1
fi