This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

A patch for gcc.misc-tests/mg.exp.


I was trying to figure out why gcc.misc-tests/mg.exp failed under
RedHat 7.0 beta. It turned out it had tcl 8.3.1. You have to use
braces for regular expression:

http://dev.scriptics.com/doc/howto/regexp81.tml

For some reason, it doesn't work with tcl 8.0.5. I don't know enough
about tcl to fix it right. I hope this will give someone a clue to
do it right.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---
2000-09-06  H.J. Lu  (hjl@gnu.org)

	* gcc.misc-tests/mg.exp (compiler_output): Make it a regular
	expression.

Index: gcc/testsuite/gcc.misc-tests/mg.exp
===================================================================
RCS file: /work/cvs/gnu/egcs/gcc/testsuite/gcc.misc-tests/mg.exp,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 mg.exp
--- gcc/testsuite/gcc.misc-tests/mg.exp	2000/08/07 01:35:22	1.1.1.1
+++ gcc/testsuite/gcc.misc-tests/mg.exp	2000/09/06 23:16:00
@@ -23,5 +23,5 @@ load_lib mike-gcc.exp
 
 prebase
 set actions none-of-the-above
-set compiler_output "mg.o ?: .*mg.c \[ \\\n\]*nonexist.h"
+set compiler_output {mg.o ?: .*mg.c [ \\\n]*nonexist.h}
 postbase mg.c "" "" "-MM -MG"

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