diff options
| author | fiestorra <fiestorra@users.noreply.github.com> | 2026-11-29 23:44:44 +0100 |
|---|---|---|
| committer | fiestorra <fiestorra@users.noreply.github.com> | 2026-11-30 14:55:19 +0100 |
| commit | 7c99b8e504897a802971cdbccdf656f26080a63f (patch) | |
| tree | ddc47e46fbb6a5069f6b7dcb332751ff9f650456 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 37626c0ace0ec01e207e9882c9b17776204f361b (diff) | |
tests: compare the local baseline's numbers, not a timing threshold
merzleckeier measured what a bigger limit buys and it is not enough: at a 1024x
slowdown the 1000x draft still failed 0/3, while comparing the run's baseline
back against the file it was given passed 3/3. A limit measures the runner;
the numbers do not.
So the case now reads the measured values out of the baseline it just wrote and
asserts the second run used exactly those, with no --max-slowdown on that
invocation. The over-limit behaviour keeps its own deterministic test
(--max-slowdown 0.01 must report one), untouched.
Verified here: 10 passed, 5 subtests; and substituting a different baseline
makes the case fail (1 failed), which is what the assertion is for.
Written with an AI assistant.
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions