mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
d5e2c40823
commit
9652f5f192
@ -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 ];
|
||||
|
@ -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__);
|
Loading…
Reference in New Issue
Block a user