bugGNU libunistring - Bugs: bug #62820, Test failure on MacOS High Sierra

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62820: Test failure on MacOS High Sierra

Submitter:  Lukas Oberhuber <lukaso>
Submitted:  Wed 27 Jul 2022 07:14:46 AM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Fri 23 Feb 2024 02:14:25 PM UTC, comment #1: 

I can reproduce the test failure in test-sigaction.c:81 on Mac OS 10.5, when building for PowerPC (CC="gcc -arch ppc").

Probably your situation is similar: running on an arm64 hardware, and building x86_64 binaries. The dynamic code translation by Apple's products has its limitations.

In normal situations (building for the CPU type of the actual hardware) the test works fine.

Bruno Haible <haible>
Group administrator
Wed 27 Jul 2022 07:14:46 AM UTC, original submission:  

When building in Homebrew on MacOS High Sierra (10.13), libunistring fails the sigaction test. May also fail on earlier versions of MacOS.

This patch "fixes" the failure:

```
diff --git a/tests/test-sigaction.c b/tests/test-sigaction.c
index ab5924d..25b52fe 100644
--- a/tests/test-sigaction.c
+++ b/tests/test-sigaction.c
@@ -78,7 +78,7 @@ handler (int sig)
          when this program is linked with -lpthread, due to the sigaction()
          override in libpthread.so.  */
 #if !(defined _GLIBC_ || defined _UCLIBC_)
-      ASSERT (sa.sa_handler == SIG_DFL);
+      /* ASSERT (sa.sa_handler == SIG_DFL); */
 #endif
       break;
     default:
@@ -108,7 +108,7 @@ main (void)
   ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0);
   ASSERT ((old_sa.sa_flags & SA_SIGINFO) == 0);
 #if !(defined _GLIBC_ || defined _UCLIBC_) /* see above */
-  ASSERT (old_sa.sa_handler == SIG_DFL);
+  /* ASSERT (old_sa.sa_handler == SIG_DFL); */
 #endif

   sa.sa_handler = SIG_IGN;
```

Lukas Oberhuber <lukaso>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by lukaso (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-23 haible StatusNone Works For Me
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code