Fix syntax error in annota-input-while-running.exp

Message ID CA+i-QGjS4QBLkBbsbd0i1JxudyW4jPHrGmAyQTjtQnjrJ1K8Mg@mail.gmail.com
State New, archived
Headers

Commit Message

Francis Ricci May 23, 2016, 6:31 p.m. UTC
  This patch fixes a syntax error which caused a failure in
annota-input-while-running.exp to crash the test suite runner.

This is my first gdb contribution, so I have not signed a copyright
assignment form. However, from reading gdb/CONTRIBUTE, it looks like
this is not necessary for small changes.
2016-05-22 Francis Ricci <francisjricci@gmail.com>

       * gdb.base/annota-input-while-running.exp: Fix syntax error.
  

Patch

diff --git a/gdb/testsuite/gdb.base/annota-input-while-running.exp b/gdb/testsuite/gdb.base/annota-input-while-running.exp
index adc96e4..fc2e608 100644
--- a/gdb/testsuite/gdb.base/annota-input-while-running.exp
+++ b/gdb/testsuite/gdb.base/annota-input-while-running.exp
@@ -25,8 +25,8 @@  if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug] == -1} {
 # Because runto_main doesn't know how to handle the prompt with annotations,
 # run to main before we set the annotation level.
 if ![runto_main] then {
--   fail "Can't run to main"
--   return 1
+   fail "Can't run to main"
+   return 1
 }

 # NOTE: this prompt is OK only when the annotation level is > 1