diff options
author | dsmith <dsmith> | 2007-07-26 21:40:50 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-07-26 21:40:50 +0000 |
commit | dc47c10f115509090eda6f965001ccc32fdbdb57 (patch) | |
tree | bff04f4c9e835ff2d01b91223f964edc3046d5ce /testsuite/systemtap.samples | |
parent | fc52ef5baf3208370014471fc7608712e1e4cb18 (diff) | |
download | systemtap-steved-dc47c10f115509090eda6f965001ccc32fdbdb57.tar.gz systemtap-steved-dc47c10f115509090eda6f965001ccc32fdbdb57.tar.xz systemtap-steved-dc47c10f115509090eda6f965001ccc32fdbdb57.zip |
2007-07-26 David Smith <dsmith@redhat.com>
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.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r-- | testsuite/systemtap.samples/args.exp | 12 |
1 files changed, 11 insertions, 1 deletions
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 } |