Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115929114
D39627.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
D39627.diff
View Options
diff --git a/usr.bin/renice/tests/renice_test.sh b/usr.bin/renice/tests/renice_test.sh
--- a/usr.bin/renice/tests/renice_test.sh
+++ b/usr.bin/renice/tests/renice_test.sh
@@ -28,6 +28,7 @@
# Name of user to use for -u tests when running as root. Beware that
# processes owned by that user will be affected by the test.
TEST_USER=nobody
+SHELL=/bin/sh
_renice() {
atf_check -o empty -e ignore -s exit:0 renice "$@"
@@ -97,7 +98,7 @@
}
renice_abs_user_body() {
local user pid nice incr
- pid=$(su -m $TEST_USER -c "/bin/sh -c 'sleep 60 >/dev/null & echo \$!'")
+ pid=$(su -m $TEST_USER -c "sleep 60 >/dev/null & echo \$!")
nice="$(ps -o nice= -p $pid)"
incr=3
_renice $((nice+incr)) -u $TEST_USER
@@ -112,7 +113,7 @@
}
renice_rel_user_body() {
local user pid nice incr
- pid=$(su -m $TEST_USER -c "/bin/sh -c 'sleep 60 >/dev/null & echo \$!'")
+ pid=$(su -m $TEST_USER -c "sleep 60 >/dev/null & echo \$!")
nice="$(ps -o nice= -p $pid)"
incr=3
_renice -u -n $incr $TEST_USER
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 1:11 PM (17 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17882107
Default Alt Text
D39627.diff (1002 B)
Attached To
Mode
D39627: renice: Cleaner way to ensure that su -m uses the correct shell.
Attached
Detach File
Event Timeline
Log In to Comment