diff --git a/pkgs/development/rocm-modules/rocprof-trace-decoder/default.nix b/pkgs/development/rocm-modules/rocprof-trace-decoder/default.nix index 872f435e6e5d..902a49d300d2 100644 --- a/pkgs/development/rocm-modules/rocprof-trace-decoder/default.nix +++ b/pkgs/development/rocm-modules/rocprof-trace-decoder/default.nix @@ -29,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./use-system-dependencies.patch + # https://github.com/ROCm/rocm-systems/pull/3800 + ./fix-test-dependency.patch ]; strictDeps = true; @@ -59,11 +61,9 @@ stdenv.mkDerivation (finalAttrs: { checkPhase = let - # - Sanitize tests fail because the UBSan runtime (__ubsan_vptr_type_cache) is not available for - # LD_PRELOAD in the sandbox. - # - Validate tests fail because they depend on execute tests producing output files first, but - # CTest runs them concurrently without proper ordering. - skipPattern = "_(sanitize|validate)$"; + # Sanitize tests fail because the UBSan runtime (__ubsan_vptr_type_cache) is not available for + # LD_PRELOAD in the sandbox. + skipPattern = "_sanitize$"; in '' runHook preCheck diff --git a/pkgs/development/rocm-modules/rocprof-trace-decoder/fix-test-dependency.patch b/pkgs/development/rocm-modules/rocprof-trace-decoder/fix-test-dependency.patch new file mode 100644 index 000000000000..7278ec688094 --- /dev/null +++ b/pkgs/development/rocm-modules/rocprof-trace-decoder/fix-test-dependency.patch @@ -0,0 +1,15 @@ +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index a923cadce53..95a4d3a807f 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -186,7 +186,9 @@ if(BUILD_INTEGRATION_TESTS) + WORKING_DIRECTORY + ${TEST_BIN_DIR} + FIXTURES_REQUIRED +- unpack_data) ++ unpack_data ++ DEPENDS ++ ${DATA}_execute) + endif() + endforeach(DATA) + endif()