summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMatt Haggard <haggardii@gmail.com>2022-10-05 20:14:22 -0400
committerGitHub <noreply@github.com>2022-10-05 20:14:22 -0400
commit964afd30508c40f2a415d96d7bcdcabfeb26ae52 (patch)
treea61866fc84a08ee94d678f46e1846978d0ed9052
parenta600dfa5b70976e72c7f332033857b3d51ffeddf (diff)
downloadNim-964afd30508c40f2a415d96d7bcdcabfeb26ae52.tar.gz
Make output assertion deterministic for test for #7172 (#20495)
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
-rw-r--r--tests/threads/t7172.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/threads/t7172.nim b/tests/threads/t7172.nim
index 983765dba..18fbe336e 100644
--- a/tests/threads/t7172.nim
+++ b/tests/threads/t7172.nim
@@ -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()")