aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.exp')
-rwxr-xr-xruntest.exp11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtest.exp b/runtest.exp
index 28663d3..68a2117 100755
--- a/runtest.exp
+++ b/runtest.exp
@@ -1275,16 +1275,21 @@ proc load_config { args } {
#
proc load_tool_target_config { name } {
- global target_os
+ global target_os libdir srcdir
set found [load_config "${name}.exp" "${target_os}.exp" "default.exp" "unknown.exp"];
if { $found == 0 } {
- send_error "ERROR: Couldn't find tool config file for $name.\n"
+ send_error "WARNING: Couldn't find tool config file for $name, using default.\n"
+ # If we can't load the tool init file, this must be a simple natively hosted
+ # test suite, so we use the default procs for Unix.
+ if { [search_and_load_file "library file" default.exp [list $libdir $libdir/config [file dirname [file dirname $srcdir]]/dejagnu/config $srcdir/config . [file dirname [file dirname [file dirname $srcdir]]]/dejagnu/config]] == 0 } {
+ send_error "ERROR: Couldn't find default tool init file.\n"
+ exit 1
+ }
}
}
-
#
# Find the file that describes the machine specified by board_name.
#