diff options
| author | Peter Holm <pho@FreeBSD.org> | 2022-08-07 08:35:47 +0000 |
|---|---|---|
| committer | Peter Holm <pho@FreeBSD.org> | 2022-08-07 08:35:47 +0000 |
| commit | ac79b5f327941115f58c0ac4d00bd72b19d43543 (patch) | |
| tree | d2806dd6f8d1ef5e4bc9223f4b61237fa6a8a0b2 /tools | |
| parent | a3d933cc4f2300b476151c2dd3fa455882f3aa97 (diff) | |
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/test/stress2/misc/badcode3.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/test/stress2/misc/badcode3.sh b/tools/test/stress2/misc/badcode3.sh index e0a10d0074a4..61dce1cb82c3 100755 --- a/tools/test/stress2/misc/badcode3.sh +++ b/tools/test/stress2/misc/badcode3.sh @@ -39,13 +39,18 @@ mdconfig -a -t swap -s 1g -u $mdstart newfs $newfs_flags md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint +export badcodeLOAD=100 +export RUNDIR=$mntpoint/stressX +mkdir -p $RUNDIR +chmod 0777 $RUNDIR here=`pwd` cd $mntpoint (cd $here/../testcases/swap; ./swap -t 5m -i 20) & sleep 2 while pgrep -q swap; do - timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20 + su $testuser -c \ + "timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20" done wait cd $here |
