[gdb/testsuite] Handle unrecognized command line option in gdb_compile_test
authorTom de Vries <tdevries@suse.de>
Fri, 10 Sep 2021 16:36:36 +0000 (18:36 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 10 Sep 2021 16:36:36 +0000 (18:36 +0200)
commit7883d1e157780165060234d3722589fae6449adb
treea65cb245865902d2573e4b28d6f7ee3b15b7af79
parent55fc911ad67c55f41fabb757726b641601d7870a
[gdb/testsuite] Handle unrecognized command line option in gdb_compile_test

When running the gdb testsuite with gnatmake-4.8, I get many fails of the
following form:
...
gcc: error: unrecognized command line option '-fgnat-encodings=all'^M
gnatmake: "gdb.ada/O2_float_param/foo.adb" compilation error^M
compiler exited with status 1
compilation failed: gcc ... gdb.ada/O2_float_param/foo.adb
gcc: error: unrecognized command line option '-fgnat-encodings=all'
gnatmake: "gdb.ada/O2_float_param/foo.adb" compilation error
FAIL: gdb.ada/O2_float_param.exp: scenario=all: compilation foo.adb
...

Fix this by marking the test unsupported instead, such that we have:
...
UNSUPPORTED: gdb.ada/O2_float_param.exp: scenario=all: compilation foo.adb \
  (unsupported option '-fgnat-encodings=all')
...

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-09-10  Tom de Vries  <tdevries@suse.de>

* lib/gdb.exp (gdb_compile_test): Handle unrecognized command line
option.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp
This page took 0.043526 seconds and 4 git commands to generate.