upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorAyoze Torres <53948812+ayozetr@users.noreply.github.com>2026-11-22 03:20:15 +0000
committerAyoze Torres <53948812+ayozetr@users.noreply.github.com>2026-11-22 03:55:16 +0000
commit6ba626606bb16276a53ad9ef408ac6f1e0226aeb (patch)
treebd91e71176ba971f68b57678b409504b46da05e7 /runtime/test/loader_test.cpp
parent1f50ec3ba586cf4bca2aeac1bda9e5d0333fa285 (diff)
tests: loader's scan probe and the D3D12 host comparisons under Wine
loader_test: the probe for security software that holds newly written images also stops when writing and reading one back averages over 25 ms. Under Wine there is no such software and its file I/O alone took 38-40 ms in the wine job, so there only the refusals and contents are checked. The host comparisons move from d3d12_vulkan_device_test's create_host_device to copycmp::create_host, so the copy comparisons are skipped under Wine too (with them, winevulkan asserted in vkBindBufferMemory).
Diffstat (limited to 'runtime/test/loader_test.cpp')
-rw-r--r--runtime/test/loader_test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/test/loader_test.cpp b/runtime/test/loader_test.cpp
index 739db66cf..5ee203e28 100644
--- a/runtime/test/loader_test.cpp
+++ b/runtime/test/loader_test.cpp
@@ -780,7 +780,10 @@ std::string written_images_blocked() {
780 } 780 }
781 const auto elapsed = std::chrono::steady_clock::now() - start; 781 const auto elapsed = std::chrono::steady_clock::now() - start;
782 const auto each = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed) / probes; 782 const auto each = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed) / probes;
783 if (each > slow) 783 // Under Wine there is no such software, and its file I/O alone can average over 25 ms on a CI runner (38 and
784 // 40 ms seen in the wine job): the refusals and contents above are still checked, the time isn't.
785 const bool wine = GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "wine_get_version") != nullptr;
786 if (each > slow && !wine)
784 return "writing and reading one back took " + std::to_string(each.count()) + " ms on average (over " + 787 return "writing and reading one back took " + std::to_string(each.count()) + " ms on average (over " +
785 std::to_string(slow.count()) + " ms means each is being scanned)"; 788 std::to_string(slow.count()) + " ms means each is being scanned)";
786 return {}; 789 return {};