]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: Disable some tests that are broken on remote Windows host
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Sep 2023 18:48:22 +0000 (18:48 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Sep 2023 18:48:22 +0000 (18:48 +0000)
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>
gdb/testsuite/gdb.base/bad-file.exp
gdb/testsuite/gdb.base/early-init-file.exp
gdb/testsuite/gdb.base/empty-host-env-vars.exp

index 5d8dfee8fea3ba4999ec50af3baa075fc81faab9..5e050411f9587599336fe77898e35ea16da9a986 100644 (file)
@@ -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
index fcd1ff041a1279d997c347b114f15c07b763bfdb..237439f9db762921b98dc0fed9f10222ae512458 100644 (file)
@@ -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.
index 96240311c2429a7dfe515a51831d931d0155232a..22f6b4d2ebe024a31f328fae1c24aa12c1ce850c 100644 (file)
@@ -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.