Reject arguments with leading =; test previous patch.

* tests/base.at (configure arguments): Test this.
Reported by Jeff Squyres.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake 2008-11-04 19:13:38 -07:00
parent bc6676ed11
commit 62c045085d
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
(_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* tests/base.at (configure arguments): Test this.
Reported by Jeff Squyres.
2008-11-04 Eric Blake <ebb9@byu.net>

View File

@ -321,6 +321,10 @@ AT_CHECK_AUTOCONF
AT_CHECK_CONFIGURE([FOO=bar --enable-baz --without-zork --silent], [0], [stdout], [ignore])
AT_CHECK([grep 'FOO=bar --enable-baz --without-zork --silent' stdout], [0], [ignore], [ignore])
dnl check that syntax error is detected
AT_CHECK_CONFIGURE([=], [1], [], [ignore], [ignore])
AT_CHECK_CONFIGURE([1=2], [1], [], [ignore], [ignore])
AT_CLEANUP