mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 22:25:22 +00:00
ccb59683b9
One test is suitable to be hooked up to the build, so I've done this here. The other test lives in tools/regression because failure is a bit more subjective -- generally, one runs it for some unbounded amount of time and observe if it eventually exits because two threads acquired the same mutex. Reviewed by: imp, mmel Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D39668
15 lines
391 B
Bash
15 lines
391 B
Bash
#!/bin/sh
|
|
|
|
scriptdir=$(dirname $(realpath "$0"))
|
|
|
|
. ${scriptdir}/common.sh
|
|
|
|
# Ensure emul_swp is enabled just for this test; we'll turn it back off if
|
|
# it wasn't enabled before the test.
|
|
emul_swpval=$(sysctl -n compat.arm.emul_swp)
|
|
sysctl compat.arm.emul_swp=1 >/dev/null
|
|
${scriptdir}/swp_test_impl
|
|
if [ "$emul_swpval" -ne 1 ]; then
|
|
sysctl compat.arm.emul_swp="$emul_swpval" >/dev/null
|
|
fi
|