summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-08-20 08:41:03 -0500
committerDavid Smith <dsmith@redhat.com>2009-08-20 08:41:03 -0500
commitb313f94ed30b4342eb02def7d8e895f5d2af8008 (patch)
tree1221492e9661f8b152ebc8008dde2b218db44a8b
parentf7449b56b848309a391a70806fa320f6e701f054 (diff)
downloadsystemtap-steved-b313f94ed30b4342eb02def7d8e895f5d2af8008.tar.gz
systemtap-steved-b313f94ed30b4342eb02def7d8e895f5d2af8008.tar.xz
systemtap-steved-b313f94ed30b4342eb02def7d8e895f5d2af8008.zip
Two minor testcase fixes.
* testsuite/systemtap.base/poll_map.exp: Improved error handling. * testsuite/systemtap.base/postgres.exp: Fixed typo.
-rw-r--r--testsuite/systemtap.base/poll_map.exp2
-rw-r--r--testsuite/systemtap.base/postgres.exp2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/poll_map.exp b/testsuite/systemtap.base/poll_map.exp
index 5ade48e6..85687b60 100644
--- a/testsuite/systemtap.base/poll_map.exp
+++ b/testsuite/systemtap.base/poll_map.exp
@@ -9,6 +9,6 @@ expect {
timeout { fail "$test (timeout)" }
eof { }
}
-close
+catch { close }
wait
if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
diff --git a/testsuite/systemtap.base/postgres.exp b/testsuite/systemtap.base/postgres.exp
index 611de2c2..0c53d86b 100644
--- a/testsuite/systemtap.base/postgres.exp
+++ b/testsuite/systemtap.base/postgres.exp
@@ -131,6 +131,6 @@ expect {
eof { }
}
-Catch {exec rm -rf /tmp/stap-postgres}
+catch {exec rm -rf /tmp/stap-postgres}
catch {exec rm /tmp/stap-postgres.stp /tmp/stap-postgres.log \
/tmp/stap-postgres-markers.log /tmp/stap-postgres.sh}