From dc47c10f115509090eda6f965001ccc32fdbdb57 Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 26 Jul 2007 21:40:50 +0000 Subject: 2007-07-26 David Smith PR 4295 * systemtap.samples/args.exp: Tests to make sure the '-m' option leaves a module in the current directory. * systemtap.base/cache.exp (stap_compile): Added cleanup. --- testsuite/systemtap.samples/args.exp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'testsuite/systemtap.samples') diff --git a/testsuite/systemtap.samples/args.exp b/testsuite/systemtap.samples/args.exp index 394ca9ed..e7c886c5 100644 --- a/testsuite/systemtap.samples/args.exp +++ b/testsuite/systemtap.samples/args.exp @@ -22,6 +22,16 @@ expect { eof { } } catch {close}; wait + +set modpath_cwd "$modname.ko" +if [file exists $modpath_cwd] { + pass "$test search for probe module ($modpath_cwd)" +} else { + fail "$test search for probe module ($modpath_cwd)" + return +} +exec /bin/rm -f $modpath_cwd + if [file exists $tmpdir] { pass "$test search for tmpdir ($tmpdir)" } else { @@ -33,7 +43,7 @@ set modpath "$tmpdir/$modname.ko" if [file exists $modpath] { pass "$test search for probe module ($modpath)" } else { - fail "$test search for probe module" + fail "$test search for probe module ($modpath)" return } -- cgit