diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-10 09:49:24 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:16 -0700 |
commit | 83c8b5eb334a77249e5b8f20ed891c227d8e42ae (patch) | |
tree | 117963ddaba82c197b5d1b397992ebabfdbf6ba5 | |
parent | 17841991c3144991e942c6cec8f21527b8cdb51f (diff) |
Make nsalias.exp more reliable
nsalias.exp tries to detect a complaint that is issued when expanding
a CU. However, the test is a bit funny in that, while gdb does
currently expand the CU and issue the complaint, it also emits this
error:
No symbol "N100" in current context.
This series will change gdb such that this CU is not expanded -- which
makes sense, the symbol in question doesn't actually match the lookups
that are done.
So, to make the test more robust, a direct request to expand symtabs
is done instead.
-rw-r--r-- | gdb/testsuite/gdb.cp/nsalias.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp index b727437abc2..0c29e6f2d40 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -324,5 +324,5 @@ if { $readnow_p } { global gdb_file_cmd_msg gdb_assert {[regexp $re $gdb_file_cmd_msg]} $test } else { - gdb_test "print N100::x" $re $test + gdb_test "maint expand-symtabs" $re $test } |