summaryrefslogtreecommitdiff
path: root/testsuite/pmap.test
diff options
context:
space:
mode:
authorCraig Small <csmall@dropbear.xyz>2022-05-03 19:37:39 +1000
committerCraig Small <csmall@dropbear.xyz>2022-05-03 19:37:39 +1000
commit38693960a1aeaede5b789055bcac991c8c214610 (patch)
tree6a609811aaed417fc3218b180b3477b035068c86 /testsuite/pmap.test
parentd66c1f39b52d53ec279fc638aa4a6352d7672201 (diff)
downloadprocps-ng-38693960a1aeaede5b789055bcac991c8c214610.tar.gz
testsuite shmid can be hex too
Previously the match for shmid was \d+ but the variable is printed as a hex number, updated the regex to suit. Added some changes for pmap test so if the test_shm process fails we just skip past it. Signed-off-by: Craig Small <csmall@dropbear.xyz>
Diffstat (limited to 'testsuite/pmap.test')
-rw-r--r--testsuite/pmap.test/pmap.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/pmap.test/pmap.exp b/testsuite/pmap.test/pmap.exp
index 3b7e50e..1622cea 100644
--- a/testsuite/pmap.test/pmap.exp
+++ b/testsuite/pmap.test/pmap.exp
@@ -68,6 +68,10 @@ expect_pass $test "$pmap_initname\$"
set test "pmap finding shm"
make_testshm_proc
-spawn $pmap $testshmproc_pid
-expect_pass $test "\[ shmid=0x$shmid \]"
+if { $shmid == "" } {
+ unsupported "$test - could not start test_shm"
+} else {
+ spawn $pmap $testshmproc_pid
+ expect_pass $test "\[ shmid=0x$shmid \]"
+}
kill_testshm_proc