mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
Ensure that POSIXLY_CORRECT does not interfere with optional argument behavior; older BSD implementations botched this. * tests/test-getopt_long.h (test_getopt_long_posix): New test, to guarantee behavior relied on by m4. * tests/test-getopt.c (main): Use it. * modules/getopt-posix-tests (Depends-on): Add setenv. See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html. Signed-off-by: Eric Blake <ebb9@byu.net>
17 lines
228 B
Plaintext
17 lines
228 B
Plaintext
Files:
|
|
tests/test-getopt.c
|
|
tests/test-getopt.h
|
|
tests/test-getopt_long.h
|
|
|
|
Depends-on:
|
|
setenv
|
|
unistd
|
|
unsetenv
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
TESTS += test-getopt
|
|
check_PROGRAMS += test-getopt
|
|
test_getopt_LDADD = $(LDADD) $(LIBINTL)
|