diff options
Diffstat (limited to 't/warnings-win-over-strictness.sh')
-rw-r--r-- | t/warnings-win-over-strictness.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/t/warnings-win-over-strictness.sh b/t/warnings-win-over-strictness.sh index 11ae8fdd2..c371b6994 100644 --- a/t/warnings-win-over-strictness.sh +++ b/t/warnings-win-over-strictness.sh @@ -19,6 +19,8 @@ . test-init.sh +mkdir aux || skip_ "cannot create directories named 'aux'" + # We want complete control over automake options. AUTOMAKE=$am_original_AUTOMAKE @@ -31,11 +33,11 @@ ok () ko () { AUTOMAKE_run $* - grep '^Makefile\.am:.*:=.*not portable' stderr + grep "^Makefile\\.am:.*'aux' is reserved on W32" stderr test $(wc -l <stderr) -eq 1 } -set_am_opts() +set_am_opts () { set +x sed <$2 >$2-t -e "s|^\\(AUTOMAKE_OPTIONS\\) *=.*|\\1 = $1|" \ @@ -48,13 +50,13 @@ set_am_opts() # Files required in gnu strictness. touch README INSTALL NEWS AUTHORS ChangeLog COPYING +$ACLOCAL + cat > Makefile.am <<END -AUTOMAKE_OPTIONS = -FOO := bar +AUTOMAKE_OPTIONS = ## For later editing by 'set_am_opts'. +SUBDIRS = aux END -$ACLOCAL - ko --foreign -Wportability ko -Wportability --foreign ok --gnu -Wno-portability |