diff options
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 7ba56e52..857d9f06 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,8 +1,8 @@ # Process with autom4te to create an -*- Autotest -*- test suite. # Test suite for GNU M4. -# Copyright (C) 2001, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 2001, 2006, 2007, 2008, 2009, 2010 Free Software +# Foundation, Inc. # This file is part of GNU M4. # @@ -71,6 +71,15 @@ fi]]) # m4:input.m4:7: cannot open module `no_such': no_such.so: cannot open shared object file: No such file or directory # or m4:input.m4:7: cannot open module `no_such': can't open the module # to m4:input.m4:7: cannot open module `no_such' +# +# When encountering command line option errors, the error message is +# platform-dependent, but contains " option ": +# m4: unrecognized option `--diversions=1' # glibc 2.6 +# or m4: unrecognized option '--diversions=1' # glibc 2.11 +# or m4: unknown option -- --diversions # BSD +# or m4: option '--debu' is ambiguous # glibc 2.11 +# or m4: ambiguous option -- --debu # BSD +# to m4: bad option m4_define([AT_CHECK_M4], [AT_CHECK([$M4 m4_ifval([$6], [], [-d ])$1 ]m4_if([$5], [-], [<&-], [< m4_default([$5], [/dev/null])]), @@ -80,6 +89,7 @@ m4_case([$4], [], [], [ignore], [], /^m4debug: module/s/opening file.*/opening file/ s/\(cannot open module [^:]*\):.*/\1/ s/Bad file number/Bad file descriptor/ + s/^m4:.* option .*/m4: bad option/ ' stderr >&2]], [0], [], [$4])]) ]) |