darwin.ICU: suppress crashing test

According to the test’s comments, it can crash and should be suppressed if it does.

c9f69cae28/icuSources/test/cintltst/cmsgtst.c (L234-L259)
This commit is contained in:
Randy Eckenrode 2024-07-22 20:55:24 -04:00
parent d5e2c40823
commit 9652f5f192
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9
2 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,8 @@ let
in
appleDerivation {
patches = [ ./suppress-icu-check-crash.patch ];
nativeBuildInputs = [ python3 ];
depsBuildBuild = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ buildPackages.stdenv.cc ];

View File

@ -0,0 +1,13 @@
diff --git a/icuSources/test/cintltst/cmsgtst.c b/icuSources/test/cintltst/cmsgtst.c
index cb328707..1073e6c1 100644
--- a/icuSources/test/cintltst/cmsgtst.c
+++ b/icuSources/test/cintltst/cmsgtst.c
@@ -231,7 +231,7 @@ static void MessageFormatTest( void )
austrdup(result), austrdup(testResultStrings[i]) );
}
-#if (U_PLATFORM == U_PF_LINUX) /* add platforms here .. */
+#if (U_PLATFORM == U_PF_LINUX || U_PLATFORM == U_PF_DARWIN) /* add platforms here .. */
log_verbose("Skipping potentially crashing test for mismatched varargs.\n");
#else
log_verbose("Note: the next is a platform dependent test. If it crashes, add an exclusion for your platform near %s:%d\n", __FILE__, __LINE__);