aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2007-01-21 22:25:34 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2007-01-21 22:25:34 +0000
commit97c3f1f3a232263f9f02788c70d70682d7981794 (patch)
tree83e469abd7adf3622f61b332920cfe5f54cc9c2c /gdb/testsuite
parent9ebce043d51981350a387880ea9a68b98c25b6c4 (diff)
downloadgdb-97c3f1f3a232263f9f02788c70d70682d7981794.zip
gdb-97c3f1f3a232263f9f02788c70d70682d7981794.tar.gz
gdb-97c3f1f3a232263f9f02788c70d70682d7981794.tar.bz2
* lib/gdb.exp: Abort on missing `site.exp'.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/gdb.exp6
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e45b6c3..c1f1879 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * lib/gdb.exp: Abort on missing `site.exp'.
+
2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 4c44024..7d785bc 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -21,6 +21,12 @@
# need to be modified for any target, it can be done with a variable
# or by passing arguments.
+if {$tool == ""} {
+ # Tests would fail, logs on get_compiler_info() would be missing.
+ send_error "`site.exp' not found, run `make site.exp'!\n"
+ exit 2
+}
+
load_lib libgloss.exp
global GDB