diff options
author | David Smith <dsmith@redhat.com> | 2010-03-24 10:57:01 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-03-24 10:57:01 -0500 |
commit | 6c62bc429ffee4fc1baa798c6b800d98e5698c00 (patch) | |
tree | 8005db88222ba117d65cfe4c59999ce53ccec8cb /testsuite/lib/stap_run_error.exp | |
parent | 8689c93ef40caf621524ac4513a1eae143843c05 (diff) | |
download | systemtap-steved-6c62bc429ffee4fc1baa798c6b800d98e5698c00.tar.gz systemtap-steved-6c62bc429ffee4fc1baa798c6b800d98e5698c00.tar.xz systemtap-steved-6c62bc429ffee4fc1baa798c6b800d98e5698c00.zip |
Improved atomic.exp testcase by removing the need for an external module.
* testsuite/systemtap.base/atomic.exp: Removed the need for the external
module by putting the atomic_long_t inside the stap module.
* testsuite/systemtap.base/atomic_module.c: Removed.
* testsuite/systemtap.base/atomic_module.makefile: Ditto.
* testsuite/lib/stap_run_error.exp (stap_run_error): Better error handling.
Diffstat (limited to 'testsuite/lib/stap_run_error.exp')
-rw-r--r-- | testsuite/lib/stap_run_error.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/lib/stap_run_error.exp b/testsuite/lib/stap_run_error.exp index bf894984..84068265 100644 --- a/testsuite/lib/stap_run_error.exp +++ b/testsuite/lib/stap_run_error.exp @@ -50,6 +50,11 @@ proc stap_run_error { TEST_NAME EXPECT_ERROR ERROR_STRING OUTPUT_CHECK_STRING ar fail "$TEST_NAME unexpected error" } } + timeout { + fail "$TEST_NAME shutdown (timeout)" + exec kill -INT -[exp_pid] + } + eof { fail "$TEST_NAME shutdown (eof)" } } } -re "semantic error:" { fail "$TEST_NAME compilation" } |