Skip batch-preserve-term-settings.exp tests that cannot work on Windows.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 15 Aug 2019 17:17:54 +0000 (10:17 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 15 Aug 2019 17:41:58 +0000 (10:41 -0700)
This group of tests assume that the gdb "shell" command launches a
POSIX-compliant shell supporting the PPID environment variable, which
is used to get gdb's pid for killing it from a remote_exec shell.  But
on Windows host "shell" launches cmd.exe, which doesn't have an
equivalent query.

2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.base/batch-preserve-term-settings.exp
(test_terminal_settings_preserved_after_sigterm): Skip on Windows.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/batch-preserve-term-settings.exp

index 12491151c54d06864dca62430c330d41a8252a1c..c459bee55f3aabe726aea7f89f5beabd3f4402d5 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.base/batch-preserve-term-settings.exp
+       (test_terminal_settings_preserved_after_sigterm): Skip on Windows.
+
 2019-08-15  Christian Biesinger  <cbiesinger@google.com>
 
        * lib/gdb.exp: When running on a mingw target, replace
index ebb494b8d440c249161cf7b0d147738fccc8219c..27b7a7a536d56bcac9b690a9bf2f3de6c352107a 100644 (file)
@@ -273,6 +273,13 @@ proc test_terminal_settings_preserved_after_sigterm { } {
     global gdb_prompt
     global shell_prompt_re
 
+    # On Windows, GDB's "shell" command spawns cmd.exe, which does not
+    # understand PPID.  So we're out of luck even if the test harness
+    # uses a remote_exec shell with a working "kill" command.
+    if [ishost *-*-mingw*] {
+       return
+    }
+
     if ![spawn_shell] {
        return
     }
This page took 0.03355 seconds and 4 git commands to generate.