make-style variable assignment broken in runtest 1.4.2

Per Cederqvist <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.bugs
Message-ID <[email protected]>
The make-style variable assignment of runtest appears to be broken in
the 1.4.2 release.  The enclosed patch fixes the problem.

Repeat-by:

        runtest --tool something VARIABLE=value

You will get an "Illegal Argument" error message.

--- cut here ---
diff -u -r dejagnu-1.4.2-orig/runtest.exp dejagnu-1.4.2/runtest.exp
--- dejagnu-1.4.2-orig/runtest.exp	Thu Sep 13 00:39:56 2001
+++ dejagnu-1.4.2/runtest.exp	Fri Aug 02 15:51:38 2002
@@ -1163,6 +1163,9 @@
 	    usage;
 	    exit 0	
 	}
+
+	"[A-Z0-9_-.]*=*" { # ignore makefile style args like CC=gcc, etc...
+	}
 
 	default {
 	    if [info exists tool] {
--- cut here ---

        /ceder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.