diff options
author | Aaron Merey <amerey@redhat.com> | 2023-05-11 12:38:12 -0400 |
---|---|---|
committer | Aaron Merey <amerey@redhat.com> | 2023-05-11 12:38:12 -0400 |
commit | b7ea736a38013510cd0496b42a8eb2dd2d2f6830 (patch) | |
tree | bb4b16cfd077053e2ec898c13703b1a073bb6cb5 | |
parent | 6e96d8a9702d1fef3eb6de47bb84bdea578eb1bb (diff) | |
download | binutils-b7ea736a38013510cd0496b42a8eb2dd2d2f6830.zip binutils-b7ea736a38013510cd0496b42a8eb2dd2d2f6830.tar.gz binutils-b7ea736a38013510cd0496b42a8eb2dd2d2f6830.tar.bz2 |
gdb/testsuite: Match file size in gdb.debuginfod/crc_mismatch.exp
gdb's debuginfod progress messages include the size of the file being
downloaded if the size information is available at the time the message
is printed. For example:
Downloading 10 MB separate debug info for /lib64/libxyz.so
This size information is omitted if it's not available at the time of
printing:
Downloading separate debug info for /lib64/libxyz.so
A pattern in crc_mismatch.exp fails to be matched if a progress message
includes a file size. Add a wildcard to the pattern so that it matches
the progress message whether or not it includes the file size.
-rw-r--r-- | gdb/testsuite/gdb.debuginfod/crc_mismatch.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp index 36d008b..588fb7e 100644 --- a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp +++ b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp @@ -97,7 +97,7 @@ proc_with_prefix local_debuginfod { } { gdb_test "file [standard_output_file crc_mismatch-2]" \ [multi_line \ "Reading symbols from ${escapedobjdirsubdir}/crc_mismatch-2\\.\\.\\." \ - "Downloading separate debug info for ${escapedobjdirsubdir}/crc_mismatch-2\\.\\.\\." \ + "Downloading.*separate debug info for ${escapedobjdirsubdir}/crc_mismatch-2\\.\\.\\." \ "Reading symbols from ${cache}/\[^\r\n\]+\\.\\.\\.(?:\r\nExpanding full symbols from \[^\r\n\]+)*"] \ "debuginfod running, info downloaded, no CRC mismatch" } |