aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
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\