From 6c62bc429ffee4fc1baa798c6b800d98e5698c00 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 24 Mar 2010 10:57:01 -0500 Subject: 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. --- testsuite/lib/stap_run_error.exp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite/lib') 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" } -- cgit