aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-05-04 22:52:00 -0500
committerJacob Bachmeyer <jcb@gnu.org>2021-05-04 22:52:00 -0500
commitda5984550f2d78388bc934016b0c3461ddc8b0a4 (patch)
treeb0dbc476153394913b1a45ed3174b1a89a09db48 /runtest.exp
parent8de3c728cca39377b7e837f08437e02f0440d894 (diff)
downloaddejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.zip
dejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.tar.gz
dejagnu-da5984550f2d78388bc934016b0c3461ddc8b0a4.tar.bz2
Tighten regexp pattern used for validating output of config.guess
Diffstat (limited to 'runtest.exp')
-rw-r--r--runtest.exp2
1 files changed, 1 insertions, 1 deletions
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\