summaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-12-23 00:02:02 +0000
committerJim Blandy <jimb@codesourcery.com>2002-12-23 00:02:02 +0000
commit5124c6969f1ccf1d5053f828cc1cdb2a4a9d64dc (patch)
tree22aa924154872d7202bb1564c649e5906d1184f4 /gdb/testsuite
parent99b2b64f9b6b170aae785a544620bd41b2f5f97c (diff)
downloadgdb-5124c6969f1ccf1d5053f828cc1cdb2a4a9d64dc.tar.gz
* gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
rather than as part of the output file name.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog3
-rw-r--r--gdb/testsuite/gdb.trace/tfind.exp9
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1ca3208569a..23c9b107047 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2002-12-22 Jim Blandy <jimb@redhat.com>
+ * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
+ rather than as part of the output file name.
+
* gdb.base/attach.exp: There's no need to copy the test program to
/tmp; that was only ever necessary on HP/UX, and this test is
entirely disabled there anyway.
diff --git a/gdb/testsuite/gdb.trace/tfind.exp b/gdb/testsuite/gdb.trace/tfind.exp
index f678975f27e..95073518218 100644
--- a/gdb/testsuite/gdb.trace/tfind.exp
+++ b/gdb/testsuite/gdb.trace/tfind.exp
@@ -53,8 +53,13 @@ if [istarget "m68k-*-elf"] then {
set testfile "actions"
set srcfile ${testfile}.c
set binfile $objdir/$subdir/$testfile
- if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile -O1" \
- executable {debug additional_flags=-w}] != "" } {
+
+ # Why does this test require '-O1' level optimization? (In
+ # general, the optimization level should be left under the control
+ # of the test framework (target_list and so on), so if we don't
+ # have to override it in individual tests like this, we shouldn't.)
+ if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
+ executable {debug additional_flags=-w optimize=-O1}] != "" } {
gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
}
gdb_load $binfile