repo.or.cz
/
cris-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git]
/
tools
/
testing
/
selftests
/
locking
/
ww_mutex.sh
blob
2c3d6b1878c2145600220059ceeb0e3b093dbe4b
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0
3
# Runs API tests for struct ww_mutex (Wait/Wound mutexes)
4
5
if
/
sbin
/
modprobe
-q
test-ww_mutex
;
then
6
/
sbin
/
modprobe
-q -r
test-ww_mutex
7
echo
"locking/ww_mutex: ok"
8
else
9
echo
"locking/ww_mutex: [FAIL]"
10
exit
1
11
fi