]> sourceware.org Git - systemtap.git/commitdiff
dejagnu testsuite driver: collect output during startup smoke test
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 27 Jul 2016 22:23:34 +0000 (18:23 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 27 Jul 2016 22:23:34 +0000 (18:23 -0400)
Stop suppressing stderr; if something's wrong (like missing
kernel-debuginfo), let's show the user the whole message.

testsuite/lib/systemtap.exp

index 019a4c43596eed268285d70a66e8b3fd73693285..879dd248bc4775ddb041b963fac3349b23bf6dd3 100644 (file)
@@ -515,7 +515,7 @@ proc get_system_info {} {
 
 proc environment_sanity_test {} {
     # PR11798: die if kernel-devel is not sufficient to build any modules
-    if {[catch {exec stap -p4 -e {probe begin {exit()}} 2> /dev/null} result]} {
+    if {[catch {exec stap -p4 -e {probe begin {exit()}} 2>@ stdout} result]} {
         puts "\n\n\n**** failed systemtap kernel-devel smoke test:\n"
         puts $result
     #    puts "****\n"
@@ -533,7 +533,7 @@ proc environment_sanity_test {} {
     # it is allowed have bad var location descriptors (which will cause
     # some tests to fail of course). Just test -p2, kernel-devel smoke
     # test above does a full module build, we don't need another one.
-    if {[catch {exec stap --skip-badvars -w -p2 -e {probe syscall.open {println (argstr)}} 2> /dev/null} result]} {
+    if {[catch {exec stap --skip-badvars -w -p2 -e {probe syscall.open {println (argstr)}} 2>@ stdout} result]} {
         puts "\n\n\n**** failed systemtap kernel-debuginfo smoke test:\n"
         puts $result
     #    puts "****\n"
This page took 0.031615 seconds and 5 git commands to generate.