diff options
author | Eric Blake <eblake@redhat.com> | 2010-07-20 08:06:16 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-07-20 09:03:11 -0600 |
commit | 82f7cdadbbde10fa0b4ff11ce0311857258a08de (patch) | |
tree | 9ece0d54e4b4a28ebf6518ef8bcd46f06a726d22 /tests/torture.at | |
parent | a759826d2198c94761bc8f92847501b58253fc3a (diff) | |
download | autoconf-82f7cdadbbde10fa0b4ff11ce0311857258a08de.tar.gz |
Another empty argument through expr workaround.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
arguments. Reject empty file argument.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Check for missing argument.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/torture.at')
-rw-r--r-- | tests/torture.at | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/torture.at b/tests/torture.at index e7f61ed1..ff059284 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -276,6 +276,12 @@ if test -w /dev/full && test -c /dev/full; then [1], [ignore], [ignore]) fi +# Validate that --file requires an argument +AT_CHECK([./config.status --file], [1], [ignore], [stderr]) +AT_CHECK([grep 'missing file argument' stderr], [0], [ignore]) +AT_CHECK([./config.status --file=], [1], [ignore], [stderr]) +AT_CHECK([grep 'missing file argument' stderr], [0], [ignore]) + # Create a header AT_CHECK_CONFIG_CREATION_NOWRITE(header) # Create a header on stdout |