load_lib dwarf.exp
load_lib debuginfod-support.exp
-require !skip_debuginfod_tests
+require allow_debuginfod_tests
set sourcetmp [standard_output_file tmp-${srcfile}]
set outputdir [standard_output_file {}]
# Helper functions to make it easier to write debuginfod tests.
-# Return true if the debuginfod tests should be skipped, otherwise, return
+# Return true if the debuginfod tests should be run, otherwise, return
# false.
-proc skip_debuginfod_tests {} {
+proc allow_debuginfod_tests {} {
if [is_remote host] {
- return true
+ return false
}
if { [which debuginfod] == 0 } {
- return true
+ return false
}
if { [which curl] == 0 } {
untested "cannot find curl"
- return true
+ return false
}
# Skip testing if gdb was not configured with debuginfod.
if { [string first "with-debuginfod" \
[eval exec $::GDB --quiet $::INTERNAL_GDBFLAGS \
--configuration]] == -1 } {
- return true
+ return false
}
- return false
+ return true
}
# Create two directories within the current output directory. One directory