Make output assertion deterministic for test for #7172 (#20495)

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
Matt Haggard 2022-10-05 20:14:22 -04:00 • committed by GitHub
commit 964afd3050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,8 @@ discard """
output: '''
In doStuff()
In initProcess()
initProcess() done
TEST
initProcess() done
Crashes before getting here!
'''
joinable: false
@ -18,8 +18,8 @@ proc initProcess(): void =
echo("In initProcess()")
var thread: Thread[void]
createThread(thread, whatever)
echo("initProcess() done")
joinThread(thread)
echo("initProcess() done")
proc doStuff(): void =
echo("In doStuff()")