Browse Source

getopt_long-simple behaves as gnu getopt if POSIXLY_CORRECT is set, adapt test

Peter S. Mazinger 18 years ago
parent
commit
da2e16423c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      test/unistd/Makefile

+ 5 - 0
test/unistd/Makefile

@@ -5,4 +5,9 @@ include ../Test.mak
 
 OPTS_getopt      := -abcXXX -9
 OPTS_getopt_long := --add XXX --delete YYY --verbose
+ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
 OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour
+else
+# reordering is not supported, behaves as if POSIXLY_CORRECT would be set
+OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
+endif