From 34a1194af8825911a87155d0d1ff718a2c101970 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 9 May 2015 17:53:08 +1000 Subject: [PATCH] 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. --- testsuite/pgrep.test/pgrep.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/pgrep.test/pgrep.exp b/testsuite/pgrep.test/pgrep.exp index 1c6cec6f..7c394dc6 100644 --- a/testsuite/pgrep.test/pgrep.exp +++ b/testsuite/pgrep.test/pgrep.exp @@ -75,7 +75,7 @@ spawn $pgrep -s $testproc1_sid $testproc_comm expect_pass "$test" "^$testproc1_pid\\s+$testproc2_pid\\s*$" set test "pgrep doesn't match with bogus sid" -spawn $pgrep -s 1 $testproc_comm +spawn $pgrep -s -1 $testproc_comm expect_blank "$test" set test "pgrep matches on tty"