cpptrace: enable tests

This commit is contained in:
Sergei Zimmerman
2024-12-23 14:02:33 +03:00
parent 2b7a992cfd
commit 986c08a671
+8 -3
View File
@@ -23,6 +23,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-JBgus66duh+a8Cr1NubNsMHE7CP13uML8DTgXW9jwIc=";
};
postPatch = ''
# https://www.github.com/jeremy-rifkin/cpptrace/pull/196
substituteInPlace test/unit/stacktrace.cpp --replace-fail \
"#define CPPTRACE_FORCE_INLINE [[gnu::always_inline]]" \
"#define CPPTRACE_FORCE_INLINE [[gnu::always_inline]] static"
'';
nativeBuildInputs = [
cmake
pkg-config
@@ -40,9 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
];
checkInputs = [ gtest ];
# Unit tests are flaky and hard to get right.
doCheck = false;
doCheck = true;
passthru = {
updateScript = nix-update-script { };