unified-memory-framework: fix races between file provider tests

Several tests create their file memory provider's backing file under
the same name in the same working directory, and race when ctest runs
them in parallel, which makes the check phase fail intermittently.
Apply the upstream fix that gives each test its own file name.

Assisted-by: Claude Code (Claude Opus 5.5)
This commit is contained in:
Can H. Tartanoglu
2026-10-26 13:47:34 +00:00
parent 9512695b32
commit 04bcf623a0

View File

@@ -76,6 +76,14 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://github.com/oneapi-src/unified-memory-framework/commit/3ab0bc195f72060555f154475ec3abe01d2ba742.patch";
hash = "sha256-0+dgOFNmGrxXPWxtsc1mvzj0V8+eJhH2HkGooDcNdhs=";
})
# Several file provider tests share a backing file name in the same
# working directory and race when ctest runs them in parallel.
# https://github.com/oneapi-src/unified-memory-framework/pull/1620
(fetchpatch {
name = "use-different-temporary-file-names.patch";
url = "https://github.com/oneapi-src/unified-memory-framework/commit/afa229239daabfee2722f780f83d933654d5965a.patch";
hash = "sha256-mDQCz9sAxFemsGGhY6hwx4vsQgSrchuik/a4+7Gdp9M=";
})
];
postPatch = ''