gdb/testsuite: tighten patterns in build-id-no-debug-warning.exp
authorAndrew Burgess <aburgess@redhat.com>
Fri, 5 May 2023 12:38:04 +0000 (13:38 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 5 May 2023 15:57:31 +0000 (16:57 +0100)
commit58d047ac2597d7b9e89e1723aaf67dfe51f8117b
treeccc9a4de4ea3ca8e853e101c529cb807b3f24ec8
parent233239384c7a050dd590971d75233c49b12f8d85
gdb/testsuite: tighten patterns in build-id-no-debug-warning.exp

Tighten the expected output pattern in the test script:

  gdb.debuginfod/build-id-no-debug-warning.exp

While working on some other patch I broke GDB such that this warning:

  warning: "FILENAME": separate debug info file has no debug info

(which is generated in build-id.c) didn't actually include the
FILENAME any more -- yet this test script continued to pass.  It turns
out that this script doesn't actually check for FILENAME.

This commit extends the test pattern to check for the full warning
string, including FILENAME, and also removes some uses of '.*' to make
the test stricter.
gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp