From 97c3f1f3a232263f9f02788c70d70682d7981794 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 21 Jan 2007 22:25:34 +0000 Subject: [PATCH] * lib/gdb.exp: Abort on missing `site.exp'. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/lib/gdb.exp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e45b6c3b38..c1f1879b14 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-01-14 Jan Kratochvil + + * lib/gdb.exp: Abort on missing `site.exp'. + 2007-01-21 Jan Kratochvil Daniel Jacobowitz diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 4c44024804..7d785bc8fd 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