This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] testsuite/gdb.base/bang.exp: Allow trailing text after "Program exited normally"


Hi,

while testing I found that a test for ending the program in
gdb.base/bang.exp failed, even though the target had actually
exited normally.  The cause of the FAIL is that bang.exp doesn't
expect anything after the string "Program exited normally.".
On the sh target at least, the output after exiting contains a
bit more text:

  Program exited normally.
  [Switching to process 0] 

Since that trailing output after a normal exit doesn't change
anything with respect to the testresult, I propose to allow
trailing characters:

	* testsuite/gdb.base/bang.exp: Allow trailing text after
	"Program exited normally." string.

Index: testsuite/gdb.base/bang.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bang.exp,v
retrieving revision 1.1
diff -u -p -r1.1 bang.exp
--- testsuite/gdb.base/bang.exp 24 Jun 2003 22:04:06 -0000      1.1
+++ testsuite/gdb.base/bang.exp 8 Sep 2003 11:29:38 -0000
@@ -36,6 +36,6 @@ gdb_load ${binfile}

 # Verify that we can run the program and that it terminates normally.
 gdb_test "run" \
-         ".*Program exited normally\." \
+         ".*Program exited normally\..*" \
          "run program"


Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]