diff options
author | David Smith <dsmith@redhat.com> | 2010-01-13 09:30:12 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-01-13 09:30:12 -0600 |
commit | c74bc9e5e177f947cdac9788d0272fa4d66780b9 (patch) | |
tree | be3f3fdc0617056ffe7226444bd92b89c0a18fcb /testsuite/systemtap.syscall/test.tcl | |
parent | 275ea5e8ee085af6a7782fe3acbffe07645aa0a4 (diff) | |
download | systemtap-steved-c74bc9e5e177f947cdac9788d0272fa4d66780b9.tar.gz systemtap-steved-c74bc9e5e177f947cdac9788d0272fa4d66780b9.tar.xz systemtap-steved-c74bc9e5e177f947cdac9788d0272fa4d66780b9.zip |
Fix PR11160 by handling ppc syscall.sigaction32 correctly.
* tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function.
* tapset/syscalls2.stp (syscall.sigaction32): Uses new
_struct_old_sigaction32() function to provide a human readable version
of the sigaction argument.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C
flags when pre-processing test files to better determine which tests are
valid on which platforms.
Diffstat (limited to 'testsuite/systemtap.syscall/test.tcl')
-rwxr-xr-x | testsuite/systemtap.syscall/test.tcl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuite/systemtap.syscall/test.tcl b/testsuite/systemtap.syscall/test.tcl index e640db66..9d620d74 100755 --- a/testsuite/systemtap.syscall/test.tcl +++ b/testsuite/systemtap.syscall/test.tcl @@ -46,10 +46,19 @@ proc run_one_test {filename flags bits} { set sys_prog "[file dirname [file normalize $filename]]/sys.stp" set cmd "stap --skip-badvars -c $dir/${testname} ${sys_prog}" + # Extract additional C flags needed to compile + set add_flags "" + foreach i $flags { + if [regexp "^additional_flags=" $i] { + regsub "^additional_flags=" $i "" tmp + append add_flags " $tmp" + } + } + # Extract the expected results # Use the preprocessor so we can ifdef tests in and out - set ccmd "gcc -E -C -P $filename" + set ccmd "gcc -E -C -P $add_flags $filename" # XXX: but note, this will expand all system headers too! catch {eval exec $ccmd} output |