libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ileana Dumitrescu
Date: Fri, 25 Oct 2024 12:44:04 -0400 (EDT)

branch: development
commit c7bfd6884ceae4e792b17c9ea89097e8d00dbe2b
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri Oct 25 19:06:44 2024 +0300

    libtool: Avoid test failure in OpenBSD
    
    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.
---
 tests/execute-mode.at | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/execute-mode.at b/tests/execute-mode.at
index ac77c40b..44b723bc 100644
--- a/tests/execute-mode.at
+++ b/tests/execute-mode.at
@@ -170,6 +170,13 @@ LT_AT_NOINST_EXEC_CHECK([./main], [], [], [stdout], 
[ignore],
                        ["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 \
@@ -182,7 +189,7 @@ for arg2 in \
    'd\\' '' \
    'd\\\' '' \
    'd\\\\' '' \
-   '<' '>' \
+   "$escape<" "$escape>" \
    '<def>' ''
 do
   if test -z "$arg1"; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]