pgrep SID=1 is valid

On most systems the only process with a SID=1 is init
and certainly not a test sleep.  On docker systems this
test program IS on SID=1 and so our "impossible SID" becomes
possible.
This commit is contained in:
Craig Small 2015-05-09 17:53:08 +10:00
parent 4050148a45
commit 34a1194af8

View File

@ -75,7 +75,7 @@ spawn $pgrep -s $testproc1_sid $testproc_comm
expect_pass "$test" "^$testproc1_pid\\s+$testproc2_pid\\s*$" expect_pass "$test" "^$testproc1_pid\\s+$testproc2_pid\\s*$"
set test "pgrep doesn't match with bogus sid" set test "pgrep doesn't match with bogus sid"
spawn $pgrep -s 1 $testproc_comm spawn $pgrep -s -1 $testproc_comm
expect_blank "$test" expect_blank "$test"
set test "pgrep matches on tty" set test "pgrep matches on tty"