Ξ-W2-T1 re-review cleanup: soften ordering claim, bound bake guard fields, dedup gain/play-mode rationale, quiet foreign WrongProject noise
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <limits>
|
||||
|
||||
using namespace reasampler;
|
||||
using namespace reasampler::instrument::bake;
|
||||
@@ -242,6 +243,13 @@ int main() {
|
||||
// able to walk the render into an allocation it cannot hold.
|
||||
CHECK(renderBake(s, planOf(kMaxBakeFrames, 0, 0, /*leadIn=*/1), kUnity).empty());
|
||||
CHECK(renderBake(s, planOf(1000, 0, 500, /*leadIn=*/-1), kUnity).empty());
|
||||
// A hand-built plan can carry a lead-in near the int64 ceiling; the guard must trip
|
||||
// on that field alone rather than signed-overflowing inside renderFrames()'s sum.
|
||||
CHECK(renderBake(s,
|
||||
planOf(1000, 0, 500,
|
||||
/*leadIn=*/std::numeric_limits<std::int64_t>::max() - 10),
|
||||
kUnity)
|
||||
.empty());
|
||||
}
|
||||
|
||||
if (g_fail == 0) std::printf("bake_render: all tests passed\n");
|
||||
|
||||
Reference in New Issue
Block a user