]> sourceware.org Git - systemtap.git/commitdiff
Allow "broken" kernel-debuginfo for the testsuite.
authorMark Wielaard <mjw@redhat.com>
Fri, 28 Oct 2011 21:22:11 +0000 (23:22 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 28 Oct 2011 21:26:41 +0000 (23:26 +0200)
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

index 7cd0ce0c77f072aadb3220f30231291079f14b80..ccea073f2bf6f8413384151323426719c0c3b7a9 100644 (file)
@@ -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"
This page took 0.02723 seconds and 5 git commands to generate.