aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2024-02-06 17:58:26 +0100
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2024-02-09 09:37:42 +0100
commit1175d1b35ce7bf8ee7c9b37b334370f01eb95335 (patch)
treea9523f01b0478dc165b942f07521b437c1d974bf
parent90586e27fa6ea4f9b0edab3aecb24637c776c5e0 (diff)
downloadgcc-1175d1b35ce7bf8ee7c9b37b334370f01eb95335.zip
gcc-1175d1b35ce7bf8ee7c9b37b334370f01eb95335.tar.gz
gcc-1175d1b35ce7bf8ee7c9b37b334370f01eb95335.tar.bz2
testsuite: Pattern does not match when using --specs=nano.specs
When running the testsuite for newlib nano, the --specs=nano.specs option is used. This option prepends cpp_unique_options with "-isystem =/include/newlib-nano" so that the newlib nano header files override the newlib standard ones. As the -isystem option is prepended, the -quiet option is no longer the first option to cc1. Adjust the test accordingly. Patch has been verified on Windows and Linux. gcc/testsuite/ChangeLog: * gcc.misc-tests/options.exp: Allow other options before the -quite option for cc1. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
-rw-r--r--gcc/testsuite/gcc.misc-tests/options.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp
index ec026ec..6e6e40c 100644
--- a/gcc/testsuite/gcc.misc-tests/options.exp
+++ b/gcc/testsuite/gcc.misc-tests/options.exp
@@ -57,7 +57,7 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_
remote_file build delete $dumpfile
}
- if {![regexp -- "/${compiler}(\\.exe)? -quiet.*$compiler_pattern" $gcc_output]} {
+ if {![regexp -- "/${compiler}(\\.exe)? \[^\r\n\]*-quiet.*$compiler_pattern" $gcc_output]} {
fail "$test (compiler options)"
return
}