| 663 | return std::chrono::duration_cast<std::chrono::nanoseconds>(Clock::now().time_since_epoch()).count(); |
| 664 | } |
| 665 | std::string released_note(bool drained) { |
| 666 | return drained ? "; its GPU waits were released and the GPU finished (#267)" |
| 667 | : "; its GPU waits were released but the GPU did not finish within 5 s (#267)"; |
| 668 | } |
| 669 | // #267 test hook: STRATA_TEST_VERIFY_STALL=N withholds the last layer's flag in the N-th window (1-based), so the |
| 670 | // GPU spins on a flag nobody raises - the bounded window wait and the release are then what ends it. Unset: never. |
| 671 | const int64_t g_test_stall = [] { |
no outgoing calls
no test coverage detected