summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-08-20 09:21:21 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2023-09-01 22:22:34 +0200
commit32dafb4c235879160c03996e855bd6b1e46d952b (patch)
tree7aa2b54c884ebc52adae733c106dbc60b5ade551
parentrset: mark as broken (diff)
downloadnixpkgs-origin/glibc-2.38.tar.gz
rapidjson: skip a regressed testorigin/glibc-2.38
I don't think this is serious. Surely it doesn't indicate a bug in glibc. And if it indicates a non-test bug in rapidjson, it's not a new one and probably won't be worse with new glibc.
-rw-r--r--pkgs/development/libraries/rapidjson/default.nix2
-rw-r--r--pkgs/development/libraries/rapidjson/test-skip-valgrind.diff7
2 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/rapidjson/default.nix b/pkgs/development/libraries/rapidjson/default.nix
index f73e01b64764..b9a29c65eba0 100644
--- a/pkgs/development/libraries/rapidjson/default.nix
+++ b/pkgs/development/libraries/rapidjson/default.nix
@@ -29,6 +29,8 @@ stdenv.mkDerivation rec {
url = "https://git.alpinelinux.org/aports/plain/community/rapidjson/do-not-include-gtest-src-dir.patch?id=9e5eefc7a5fcf5938a8dc8a3be8c75e9e6809909";
hash = "sha256-BjSZEwfCXA/9V+kxQ/2JPWbc26jQn35CfN8+8NW24s4=";
})
+ # One of these three tests reports memcpy overlap after update to glibc-2.38
+ ./test-skip-valgrind.diff
];
postPatch = ''
diff --git a/pkgs/development/libraries/rapidjson/test-skip-valgrind.diff b/pkgs/development/libraries/rapidjson/test-skip-valgrind.diff
new file mode 100644
index 000000000000..a791d88699ff
--- /dev/null
+++ b/pkgs/development/libraries/rapidjson/test-skip-valgrind.diff
@@ -0,0 +1,7 @@
+--- a/test/unittest/CMakeLists.txt
++++ b/test/unittest/CMakeLists.txt
+@@ -82,3 +81,0 @@
+- add_test(NAME valgrind_unittest
+- COMMAND valgrind --leak-check=full --error-exitcode=1 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest --gtest_filter=-SIMD.*
+- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
+