mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
tests/basic.sh: fix test for BSD 'ps' (re: cefe087d
)
This commit is contained in:
parent
30aee65113
commit
90941717da
1 changed files with 1 additions and 0 deletions
|
@ -708,6 +708,7 @@ then expect='./atest 1 2'
|
|||
./atest 1 2 &
|
||||
actual=$(UNIX95=1 ps -o args= -p "$!")
|
||||
kill "$!"
|
||||
[[ $actual =~ \(.*\)$ ]] && actual=${actual%\(*} # BSD 'ps' adds " (ksh)"
|
||||
while [[ $actual == [[:space:]]* ]]; do actual=${actual#?}; done
|
||||
while [[ $actual == *[[:space:]] ]]; do actual=${actual%?}; done
|
||||
[[ $actual == "$expect" ]] || err_exit "ksh didn't rewrite argv correctly" \
|
||||
|
|
Loading…
Reference in a new issue