public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix syntax error in annota-input-while-running.exp
@ 2016-05-23 18:31 Francis Ricci
  2016-05-24 11:14 ` Yao Qi
  0 siblings, 1 reply; 2+ messages in thread
From: Francis Ricci @ 2016-05-23 18:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: sas, fjricci

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

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.

[-- Attachment #2: changelog_entry.txt --]
[-- Type: text/plain, Size: 120 bytes --]

2016-05-22 Francis Ricci <francisjricci@gmail.com>

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

[-- Attachment #3: patch.txt --]
[-- Type: text/plain, Size: 680 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix syntax error in annota-input-while-running.exp
  2016-05-23 18:31 [PATCH] Fix syntax error in annota-input-while-running.exp Francis Ricci
@ 2016-05-24 11:14 ` Yao Qi
  0 siblings, 0 replies; 2+ messages in thread
From: Yao Qi @ 2016-05-24 11:14 UTC (permalink / raw)
  To: Francis Ricci; +Cc: gdb-patches, sas, fjricci

Francis Ricci <francisjricci@gmail.com> writes:

Hi Francis,
Thanks for your patch,

> 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.

You can get more from
https://sourceware.org/gdb/wiki/ContributionChecklist

>
> 2016-05-22 Francis Ricci <francisjricci@gmail.com>

There are two spaces before and after your name.

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

Patch below is pushed in.

-- 
Yao (齐尧)

From 6163bbf3310989e383079e85f9a2c2ee6ca8d58d Mon Sep 17 00:00:00 2001
From: Francis Ricci <francisjricci@gmail.com>
Date: Tue, 24 May 2016 12:07:00 +0100
Subject: [PATCH] Fix syntax error in annota-input-while-running.exp

This patch fixes a syntax error which caused a failure in
annota-input-while-running.exp to crash the test suite runner.

2016-05-24  Francis Ricci  <francisjricci@gmail.com>

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

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1f0e3f9..c50edad 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-24  Francis Ricci  <francisjricci@gmail.com>  (tiny patch)
+
+	* gdb.base/annota-input-while-running.exp: Fix syntax error.
+
 2016-05-23  Tom Tromey  <tom@tromey.com>
 
 	PR python/19438, PR python/18393:
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-24 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23 18:31 [PATCH] Fix syntax error in annota-input-while-running.exp Francis Ricci
2016-05-24 11:14 ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).