]> git.ipfire.org Git - people/ms/gcc.git/commit - gcc/doc/sourcebuild.texi
testsuite: clarify scan-dump file globbing behavior
authorFrederik Harwath <frederik@codesourcery.com>
Mon, 29 Jun 2020 06:42:56 +0000 (08:42 +0200)
committerFrederik Harwath <frederik@codesourcery.com>
Mon, 29 Jun 2020 06:42:57 +0000 (08:42 +0200)
commitd4501bbedca267f2051e4f57415d6d2a61306915
tree1ad4085eff9f450c2917a2b940a42b5060eb76a4
parent69273534c658949129ac6c389ea25c9cddec3767
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.

gcc/ChangeLog:

2020-06-29  Frederik Harwath  <frederik@codesourcery.com>

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

gcc/testsuite/ChangeLog:

2020-06-29  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.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
gcc/doc/sourcebuild.texi
gcc/testsuite/lib/scandump.exp