diff options
author | David Smith <dsmith@redhat.com> | 2010-02-10 16:35:46 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-02-10 16:35:46 -0600 |
commit | 42048078ab7712361ce54fa9face358f75e1d699 (patch) | |
tree | b17e3e87c0212125ac1c10669338098565dfbf81 /testsuite/systemtap.syscall/test.tcl | |
parent | 6878a54351f98eff364ba8e9b43bc69a7d63f789 (diff) | |
download | systemtap-steved-42048078ab7712361ce54fa9face358f75e1d699.tar.gz systemtap-steved-42048078ab7712361ce54fa9face358f75e1d699.tar.xz systemtap-steved-42048078ab7712361ce54fa9face358f75e1d699.zip |
Fixed PR 11270 by adding nd_syscall testcase.
* testsuite/systemtap.syscall/test.tcl: Now uses global variable
'test_script' to find test script to run.
* testsuite/systemtap.syscall/syscall.exp: Sets test_script.
* testsuite/systemtap.syscall/nd_sys.stp: New test script. Copy of
sys.stp, but uses nd_syscall probes.
* testsuite/systemtap.syscall/nd_syscall.exp: New testcase. Copy of
syscall.exp, but uses nd_sys.stp test script.
Diffstat (limited to 'testsuite/systemtap.syscall/test.tcl')
-rwxr-xr-x | testsuite/systemtap.syscall/test.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.syscall/test.tcl b/testsuite/systemtap.syscall/test.tcl index 9d620d74..477fae70 100755 --- a/testsuite/systemtap.syscall/test.tcl +++ b/testsuite/systemtap.syscall/test.tcl @@ -27,7 +27,7 @@ proc bgerror {error} { trap {cleanup_and_exit} SIGINT proc run_one_test {filename flags bits} { - global dir current_dir + global dir current_dir test_script set testname [file tail [string range $filename 0 end-2]] @@ -43,7 +43,7 @@ proc run_one_test {filename flags bits} { return } - set sys_prog "[file dirname [file normalize $filename]]/sys.stp" + set sys_prog "[file dirname [file normalize $filename]]/${test_script}" set cmd "stap --skip-badvars -c $dir/${testname} ${sys_prog}" # Extract additional C flags needed to compile |