diff options
Diffstat (limited to 'testsuite/systemtap.samples/args.exp')
-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 } |