+2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix execute mode test to actually expose cwrapper failures.
+ * tests/execute-mode.at (execute mode): Actually also test the
+ cwrapper on the arguments.
+ Report by Bruno Haible.
+
2008-11-15 Charles Wilson <libtool@cwilson.fastmail.fm>
Add func_win32_import_lib_p.
[], [ignore], [ignore])
AT_CHECK([$CC $CPPFLAGS $CFLAGS -c main.c],
[], [ignore], [ignore])
-AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la],
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT liba.la],
[], [ignore], [ignore])
# end of preparatory blurb.
[], [./lt-real
arg with special chars: $!&*`'()
])
+AT_CHECK([$LIBTOOL --mode=execute ./main$EXEEXT "arg with special chars: \$!&*\`'()"],
+ [], [stdout])
+AT_CHECK([$FGREP 'arg with special chars: $!&*`'\''()' stdout], [], [ignore])
# We always pair two args. The first one is never the empty string.
arg1=
AT_CHECK([$FGREP "$arg1" stdout], [], [ignore])
AT_CHECK([$FGREP "$arg2" stdout], [], [ignore])
AT_CHECK([test `sed -n '/^abc$/,/^xyz$/p' stdout | wc -l` -eq 4])
+ AT_CHECK([$LIBTOOL --mode=execute ./main$EXEEXT abc "$arg1" "$arg2" xyz], [], [stdout])
+ AT_CHECK([$FGREP "$arg1" stdout], [], [ignore])
+ AT_CHECK([$FGREP "$arg2" stdout], [], [ignore])
+ # Do not match EOL here, cross setups may have an extra \r here.
+ AT_CHECK([test `sed -n '/^abc/,/^xyz/p' stdout | wc -l` -eq 4])
arg1=
done