aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2023-09-05 18:48:22 +0000
committerSandra Loosemore <sandra@codesourcery.com>2023-09-05 18:48:22 +0000
commit8de9b683a5ff28e3370777ed4396a14093910fc2 (patch)
treea67af26fe6e95ae89eed28125b7b3e1f5bc41976 /gdb
parentcb7926b3ef74f9eb0eed438225857b7513663146 (diff)
downloadbinutils-8de9b683a5ff28e3370777ed4396a14093910fc2.zip
binutils-8de9b683a5ff28e3370777ed4396a14093910fc2.tar.gz
binutils-8de9b683a5ff28e3370777ed4396a14093910fc2.tar.bz2
gdb/testsuite: Disable some tests that are broken on remote Windows host
These testcases assume host==build or that the remote host has a Posix shell to run commands in. Don't try to run them if that's not the case. Reviewed-By: Tom Tromey <tom@tromey.com> Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/bad-file.exp3
-rw-r--r--gdb/testsuite/gdb.base/early-init-file.exp3
-rw-r--r--gdb/testsuite/gdb.base/empty-host-env-vars.exp3
3 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/bad-file.exp b/gdb/testsuite/gdb.base/bad-file.exp
index 5d8dfee..5e05041 100644
--- a/gdb/testsuite/gdb.base/bad-file.exp
+++ b/gdb/testsuite/gdb.base/bad-file.exp
@@ -20,6 +20,9 @@
# print different text then the plan is to update the expected text
# instead of making this test linux-only or some such.
+# The pathnames and shell commands in this test don't work on Windows host.
+require {!ishost *-*-mingw*}
+
# There is no such file, but we still use the normal mechanism to pick
# its name and path.
standard_testfile
diff --git a/gdb/testsuite/gdb.base/early-init-file.exp b/gdb/testsuite/gdb.base/early-init-file.exp
index fcd1ff0..237439f 100644
--- a/gdb/testsuite/gdb.base/early-init-file.exp
+++ b/gdb/testsuite/gdb.base/early-init-file.exp
@@ -15,6 +15,9 @@
# Test GDB's early init file mechanism.
+# Test assumes host == build.
+require {!is_remote host}
+
standard_testfile
# Compile the test executable.
diff --git a/gdb/testsuite/gdb.base/empty-host-env-vars.exp b/gdb/testsuite/gdb.base/empty-host-env-vars.exp
index 9624031..22f6b4d 100644
--- a/gdb/testsuite/gdb.base/empty-host-env-vars.exp
+++ b/gdb/testsuite/gdb.base/empty-host-env-vars.exp
@@ -13,6 +13,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# This test assumes host == build.
+require {!is_remote host}
+
# GDB reads some environment variables on startup, make sure it behaves
# correctly if these variables are defined but empty.