# The purpose of this testcase is to verify that .callee[s] probes function
# properly in a variety of situations.
+# Requires GCC v4.7 and stap compiled with elfutils 0.153
+if {[strverscmp $GCC_Version 4.7] < 0} {
+ verbose -log "skipping $test.exp: GCC too old ($GCC_Version vs. 4.7)"
+ untested $test
+ return
+}
+if {[strverscmp $ELF_Version 0.153] < 0} {
+ verbose -log "skipping $test.exp: elfutils too old ($ELF_Version vs. 0.153)"
+ untested $test
+ return
+}
+
# We move on to other subtests if a subtest fails, but within subtests, we fail
# the whole subtest if a subsubtest fails. Hope that makes sense.
}
# Get output for --dump-functions
-if {[catch {exec -ignorestderr stap --dump-functions 2>/dev/null} output]} {
+if {[catch {exec stap --dump-functions 2>/dev/null} output]} {
fail "$test (can't get output of stap --dump-functions)"
return
} else {
}
# Get output for -v --dump-functions
-if {[catch {exec -ignorestderr stap -v --dump-functions 2>/dev/null} outputv]} {
+if {[catch {exec stap -v --dump-functions 2>/dev/null} outputv]} {
fail "$test (can't get output of stap -v --dump-functions)"
return
} else {
}
# Get output for --dump-probe-aliases
-if {[catch {exec -ignorestderr stap --dump-probe-aliases 2>/dev/null} output]} {
+if {[catch {exec stap --dump-probe-aliases 2>/dev/null} output]} {
fail "$test (can't get output of stap --dump-probe-aliases)"
return
} else {
}
# Get output for -v --dump-probe-aliases
-if {[catch {exec -ignorestderr stap -v --dump-probe-aliases 2>/dev/null} outputv]} {
+if {[catch {exec stap -v --dump-probe-aliases 2>/dev/null} outputv]} {
fail "$test (can't get output of stap -v --dump-probe-aliases)"
return
} else {