diff options
author | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-04 22:52:00 -0500 |
---|---|---|
committer | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-04 22:52:00 -0500 |
commit | da5984550f2d78388bc934016b0c3461ddc8b0a4 (patch) | |
tree | b0dbc476153394913b1a45ed3174b1a89a09db48 | |
parent | 8de3c728cca39377b7e837f08437e02f0440d894 (diff) | |
download | dejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.zip dejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.tar.gz dejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.tar.bz2 |
Tighten regexp pattern used for validating output of config.guess
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | runtest.exp | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,11 @@ +2021-05-04 Jacob Bachmeyer <jcb@gnu.org> + + PR41855 + + * runtest.exp: Tighten regexp used to validate output from + config.guess. The previous regexp would accept an error produced + if config.guess was incorrectly run using the C shell. + 2021-04-28 Jacob Bachmeyer <jcb@gnu.org> * configure, Makefile.in: Regenerate. diff --git a/runtest.exp b/runtest.exp index d950171..0e077ae 100644 --- a/runtest.exp +++ b/runtest.exp @@ -862,7 +862,7 @@ if {[expr {$build_triplet eq "" && $host_triplet eq ""}]} { } } } - if { ![regexp -- {^[^-]+-[^-]+-[^-]+} $build_triplet] } { + if { ![regexp -- {^[[:alnum:]_.]+(-[[:alnum:]_.]+)+$} $build_triplet] } { send_error "ERROR: Running config.guess produced bogus build triplet:\n" send_error " $build_triplet\n" send_error " (Perhaps you need to set CONFIG_SHELL or\ |