]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: clarify scan-dump file globbing behavior
authorFrederik Harwath <frederik@codesourcery.com>
Thu, 2 Jul 2020 09:50:52 +0000 (11:50 +0200)
committerFrederik Harwath <frederik@codesourcery.com>
Thu, 2 Jul 2020 09:50:52 +0000 (11:50 +0200)
commit528c94d8c08ae8128c6aaae286a7c9af90564e7c
treedc280fe428c6e0b78d29f1e42413c16226d84f85
parentca79a89b9b90bd76cd026898bfa2b8aaf8395e6e
testsuite: clarify scan-dump file globbing behavior

The test commands for scanning optimization dump files
perform globbing on the argument that specifies the suffix
of the dump files to be scanned.  This behavior is currently
undocumented.  Furthermore, the current implementation of
"scan-dump" and similar procedures yields an error whenever
the file name globbing matches more than one file (due to an
attempt to call "open" on multiple files) while a failure to
match any file results in an unresolved test.

This commit documents the globbing behavior.  The dump
scanning procedures are changed to make the test unresolved
if globbing matches more than one file.

This is a backport from master
(commit d4501bbedca267f2051e4f57415d6d2a61306915).

gcc/ChangeLog:

2020-07-02  Frederik Harwath  <frederik@codesourcery.com>

* doc/sourcebuild.texi: Describe globbing of the
dump file scanning commands "suffix" argument.

gcc/testsuite/ChangeLog:

2020-07-02  Frederik Harwath  <frederik@codesourcery.com>

* lib/scandump.exp (glob-dump-file): New proc.
(scan-dump): Use glob-dump-file for file name expansion.
(scan-dump-times): Likewise.
(scan-dump-dem): Likewise.
(scan-dump-dem-not): Likewise.
gcc/doc/sourcebuild.texi
gcc/testsuite/lib/scandump.exp