From: David Smith Date: Thu, 20 Aug 2009 13:41:03 +0000 (-0500) Subject: Two minor testcase fixes. X-Git-Tag: release-1.0~133 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b313f94ed30b4342eb02def7d8e895f5d2af8008;p=systemtap.git Two minor testcase fixes. * testsuite/systemtap.base/poll_map.exp: Improved error handling. * testsuite/systemtap.base/postgres.exp: Fixed typo. --- diff --git a/testsuite/systemtap.base/poll_map.exp b/testsuite/systemtap.base/poll_map.exp index 5ade48e6c..85687b60a 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 611de2c22..0c53d86b3 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}