Trying to "fix" obvious non-deterministic test.

This commit is contained in:
Steven Schveighoffer 2025-01-14 14:21:29 -05:00
parent 6b914aef11
commit 4f93c2a1a2

View file

@ -523,8 +523,16 @@ void testDestruction()
new long[100];
}
static void clobberStack()
{
ubyte[1024] clobber;
clobber[] = 0xff;
}
import core.memory : GC;
createGarbage();
// ensure there are no stale references on the stack
clobberStack();
GC.collect();
assert(Test.run);