diff options
author | Olivier Cochard <olivier@FreeBSD.org> | 2022-10-13 15:23:54 +0000 |
---|---|---|
committer | Olivier Cochard <olivier@FreeBSD.org> | 2022-10-13 15:32:47 +0000 |
commit | 07b1ea961af77d728dfef4d0a11f98a8ab2fe226 (patch) | |
tree | cebae7280e2076cb321680b903940c935867425c /usr.bin | |
parent | 63f6075fcfdc8e080f1e52f1dc12695fbec761e9 (diff) | |
download | src-07b1ea961af77d728dfef4d0a11f98a8ab2fe226.tar.gz src-07b1ea961af77d728dfef4d0a11f98a8ab2fe226.zip |
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/renice/tests/renice_test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/renice/tests/renice_test.sh b/usr.bin/renice/tests/renice_test.sh index 323fe44591c8..9321e0f327ae 100644 --- a/usr.bin/renice/tests/renice_test.sh +++ b/usr.bin/renice/tests/renice_test.sh @@ -97,7 +97,7 @@ renice_abs_user_head() { } renice_abs_user_body() { local user pid nice incr - pid=$(su -m $TEST_USER -c "sleep 60 >/dev/null & echo \$!") + pid=$(su -m $TEST_USER -c "/bin/sh -c 'sleep 60 >/dev/null & echo \$!'") nice="$(ps -o nice= -p $pid)" incr=3 _renice $((nice+incr)) -u $TEST_USER @@ -112,7 +112,7 @@ renice_rel_user_head() { } renice_rel_user_body() { local user pid nice incr - pid=$(su -m $TEST_USER -c "sleep 60 >/dev/null & echo \$!") + pid=$(su -m $TEST_USER -c "/bin/sh -c 'sleep 60 >/dev/null & echo \$!'") nice="$(ps -o nice= -p $pid)" incr=3 _renice -u -n $incr $TEST_USER |