gdb.ada/info_exc.exp: Adjust expected output in "info exception" test.
authorJoel Brobecker <brobecker@adacore.com>
Mon, 20 Jul 2015 22:09:44 +0000 (15:09 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 20 Jul 2015 22:18:24 +0000 (15:18 -0700)
Since multi_line was moved to gdb.exp in a slightly stricter form,
The gdb.ada/info_exc.exp:info exceptions test has been failing.
This is because it now expects a new-line sequence at the end of
each argument given to multi_line, including ".*". But the intent
when writing the test was to signify "could-be-nothing-at-all".
As a result, the test fails on x86_64-linux with a runtime built as
recommended, because of that
extra new-line sequence.

gdb/testsuite/ChangeLog:

        * gdb.ada/info_exc.exp: Adjust "info exceptions" expected output.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/info_exc.exp

index 520f606332a5127c8675875e9d89acb8609d135a..17af4fc16a5e84851a12d8039d37a2e2bccd48d3 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.ada/info_exc.exp: Adjust "info exceptions" expected output.
+
 2015-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.arch/i386-biarch-core.exp: Replace istarget
index add83c5f933c15716ceaa1b43e18052fb377bdac..d6ea5dafe447e1e03c922d186e19ce9c6c4b5c24 100644 (file)
@@ -34,9 +34,7 @@ gdb_test "info exceptions" \
                 "program_error: $hex" \
                 "storage_error: $hex" \
                 "tasking_error: $hex" \
-                ".*" \
-                "const.aint_global_gdb_e: $hex" \
-                ".*"]
+                ".*\[\r\n\]*const.aint_global_gdb_e: $hex\[\r\n\]*.*" ]
 
 gdb_test "info exceptions task" \
     [multi_line "All Ada exceptions matching regular expression \"task\":" \