diff --git a/testsuite/pwdx.test/pwdx.exp b/testsuite/pwdx.test/pwdx.exp index 0ca0b152..b86631f0 100644 --- a/testsuite/pwdx.test/pwdx.exp +++ b/testsuite/pwdx.test/pwdx.exp @@ -8,7 +8,7 @@ expect_pass "$test" "^\\s*Usage:\\s+\(lt-\)\?pwdx \\\[options\\\] pid\.\.\." # Run pwdx with pid 0 which is invalid set test "pwdx pid 0 should be invalid" spawn $pwdx 0 -expect_pass "$test" "^0: No such process" +expect_pass "$test" "\(lt-\)\?pwdx\: invalid process id\: 0" # Run pwdx with existing pid set test "pwdx finds sleep in cwd" diff --git a/testsuite/vmstat.test/vmstat.exp b/testsuite/vmstat.test/vmstat.exp index bd42bf8e..328e2fc5 100644 --- a/testsuite/vmstat.test/vmstat.exp +++ b/testsuite/vmstat.test/vmstat.exp @@ -31,7 +31,7 @@ expect_pass "$test" "^disk\[ -\]+reads\[ -\]+writes\[ -\]+IO\[ -\]+\\s+total\\s+ # Need a partition set diskstats [ exec cat /proc/diskstats ] -regexp "\\s+\\d+\\s+\\d+\\s+\(\[a-z\]+\\d+\)" $diskstats -> partition +regexp "\\s+\\d+\\s+\\d+\\s+\(\[a-z\]+\\d+\)\\s+\(\[0-9\]\[0-9\]+\)" $diskstats -> partition set test "vmstat partition (using $partition)" spawn $vmstat -p $partition expect_pass "$test" "^${partition}\\s+reads"