[gdb/testsuite] Add missing require {!is_remote host}

I ran test-case gdb.python/py-color-pagination.exp with make-check-all.sh and
noticed failures when using remote host.

So I grepped to find all test-cases using with_ansi_styling_terminal and ran
them with host/target board local-remote-host-native.

Fix the failing test-cases using require {!is_remote host}.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2025-08-27 08:28:34 +02:00
parent d5faa503bb
commit d59c2b35c0
6 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
load_lib gdb-guile.exp
require allow_guile_tests
require {!is_remote host}
# Start GDB with styling support.
with_ansi_styling_terminal {

View File

@@ -19,6 +19,7 @@
load_lib gdb-python.exp
require allow_python_tests
require {!is_remote host}
standard_testfile

View File

@@ -18,6 +18,7 @@
load_lib gdb-python.exp
require allow_python_tests
require {!is_remote host}
# Start with a fresh GDB, but enable color support.
with_ansi_styling_terminal {

View File

@@ -1202,7 +1202,9 @@ with_test_prefix "format_string" {
set current_lang "c"
prepare_gdb "${binfile}"
test_all_common
test_styling
if { ![is_remote host] } {
test_styling
}
}
}
}

View File

@@ -17,6 +17,7 @@
# initialized.
require allow_python_tests
require {!is_remote host}
# Return a list containing two directory paths for newly created home
# directories.

View File

@@ -17,6 +17,7 @@
# on the value of the third argument passed to gdb.execute.
require allow_python_tests
require {!is_remote host}
load_lib gdb-python.exp