]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blame - tools/testing/selftests/locking/ww_mutex.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-disco-kernel.git] / tools / testing / selftests / locking / ww_mutex.sh
CommitLineData
2b0b2111 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
2b0b2111
CW
3# Runs API tests for struct ww_mutex (Wait/Wound mutexes)
4
5if /sbin/modprobe -q test-ww_mutex; then
6 /sbin/modprobe -q -r test-ww_mutex
7 echo "locking/ww_mutex: ok"
8else
9 echo "locking/ww_mutex: [FAIL]"
10 exit 1
11fi