The test suite uses the --configuration flag to feature-test gdb.
However, when I added this, I neglected to pass the internal gdbflags
to this, causing an error, which then caused failures in the test
suite (which would not be seen if you'd ever run "make install").
This patch fixes the bug. Tested by removing my install tree first,
to verify that I could reproduce the failure.
# Return a 1 for configurations that support Guile scripting.
gdb_caching_proc allow_guile_tests {
- set output [exec $::GDB --configuration]
+ set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
return [expr {[string first "--with-guile" $output] != -1}]
}
# Return a 1 for configurations that support Python scripting.
gdb_caching_proc allow_python_tests {
- set output [remote_exec host $::GDB --configuration]
+ set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
return [expr {[string first "--with-python" $output] != -1}]
}
# Return 1 if we should allow TUI-related tests.
gdb_caching_proc allow_tui_tests {
- set output [remote_exec host $::GDB --configuration]
+ set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"]
return [expr {[string first "--enable-tui" $output] != -1}]
}