From c74bc9e5e177f947cdac9788d0272fa4d66780b9 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 13 Jan 2010 09:30:12 -0600 Subject: 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. --- testsuite/systemtap.syscall/test.tcl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'testsuite') 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 -- cgit