From 31766229cbd7a979bb73f8216ec3d242c888e572 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 28 Oct 2011 23:22:11 +0200 Subject: [PATCH] Allow "broken" kernel-debuginfo for the testsuite. We just care there is some debuginfo, it is allowed have bad var location descriptors (which will cause some tests to fail of course). e.g. 2.6.35.6-45.fc14.s390x kernels build with gcc version 4.5.1. --- testsuite/lib/systemtap.exp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 7cd0ce0c7..ccea073f2 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -253,7 +253,10 @@ if {[catch {exec stap -p4 -e {probe begin {exit()}}} result]} { # NB: if one introduced a [kernel_debuginfo_p] proc like the # ones for uprobes/utrace above, and sprinkled it throughout, # then this wouldn't have to be a failing condition. -if {[catch {exec stap -p4 -e {probe syscall.open {println (argstr)}}} result]} { +# Note the --skip-badvars -w, we just care there is some debuginfo, +# it is allowed have bad var location descriptors (which will cause +# some tests to fail of course). +if {[catch {exec stap --skip-badvars -w -p4 -e {probe syscall.open {println (argstr)}}} result]} { puts "\n\n\n**** failed systemtap kernel-debuginfo smoke test:\n" puts $result # puts "****\n" -- 2.43.5