diff options
author | Tom de Vries <tdevries@suse.de> | 2025-08-27 08:28:34 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-08-27 08:28:34 +0200 |
commit | d59c2b35c07805a0cd3146b018808732e61adae3 (patch) | |
tree | 6d3851755af2dc2d13605bd03d5672e956558f9d | |
parent | d5faa503bbd97015f7c9685322ace81211f5eb04 (diff) | |
download | binutils-d59c2b35c07805a0cd3146b018808732e61adae3.zip binutils-d59c2b35c07805a0cd3146b018808732e61adae3.tar.gz binutils-d59c2b35c07805a0cd3146b018808732e61adae3.tar.bz2 |
[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.
-rw-r--r-- | gdb/testsuite/gdb.guile/scm-color.exp | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-color-pagination.exp | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-color.exp | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-format-string.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-startup-opt.exp | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-styled-execute.exp | 1 |
6 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.guile/scm-color.exp b/gdb/testsuite/gdb.guile/scm-color.exp index 578f712..4c6a9c2 100644 --- a/gdb/testsuite/gdb.guile/scm-color.exp +++ b/gdb/testsuite/gdb.guile/scm-color.exp @@ -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 { diff --git a/gdb/testsuite/gdb.python/py-color-pagination.exp b/gdb/testsuite/gdb.python/py-color-pagination.exp index 3235fff..ad9ae9b 100644 --- a/gdb/testsuite/gdb.python/py-color-pagination.exp +++ b/gdb/testsuite/gdb.python/py-color-pagination.exp @@ -19,6 +19,7 @@ load_lib gdb-python.exp require allow_python_tests +require {!is_remote host} standard_testfile diff --git a/gdb/testsuite/gdb.python/py-color.exp b/gdb/testsuite/gdb.python/py-color.exp index 2601cf3..08089e5 100644 --- a/gdb/testsuite/gdb.python/py-color.exp +++ b/gdb/testsuite/gdb.python/py-color.exp @@ -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 { diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp index 114a606..2463185 100644 --- a/gdb/testsuite/gdb.python/py-format-string.exp +++ b/gdb/testsuite/gdb.python/py-format-string.exp @@ -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 + } } } } diff --git a/gdb/testsuite/gdb.python/py-startup-opt.exp b/gdb/testsuite/gdb.python/py-startup-opt.exp index 7410706..929c64d 100644 --- a/gdb/testsuite/gdb.python/py-startup-opt.exp +++ b/gdb/testsuite/gdb.python/py-startup-opt.exp @@ -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. diff --git a/gdb/testsuite/gdb.python/py-styled-execute.exp b/gdb/testsuite/gdb.python/py-styled-execute.exp index 0b27c63..198dab5 100644 --- a/gdb/testsuite/gdb.python/py-styled-execute.exp +++ b/gdb/testsuite/gdb.python/py-styled-execute.exp @@ -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 |