The following errors can be seen for the 'execute mode' test in OpenBSD:
build/libtool: test: <: missing second argument
build/libtool: test: >: missing second argument
The cwrapper in OpenBSD cannot parse these symbols as arguments in
execute mode if there are no other characters with them.
* tests/execute-mode.at: Escape '<' and '>' in OpenBSD.
["arg with special chars: \$!&*'\`()"])
AT_CHECK([$FGREP 'arg with special chars: $!&*'\''`()' stdout], [], [ignore])
+# OpenBSD cwrapper has issues parsing '<' and '>' in execute mode without other
+# characters, so the symbols are escaped during testing in OpenBSD.
+escape=
+case $host_os in openbsd*)
+ escape='\' ;;
+esac
+
# We always pair two args. The first one is never the empty string.
arg1=
for arg2 in \
'd\\' '' \
'd\\\' '' \
'd\\\\' '' \
- '<' '>' \
+ "$escape<" "$escape>" \
'<def>' ''
do
if test -z "$arg1"; then