-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo
not thread safe on windows, causing [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nim
#8511
Comments
echo
not thread safe: [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nim
echo
not thread safe: [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nimecho
not thread safe, causing [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nim
Is it ever claimed anywhere that |
https://nim-lang.org/docs/system.html#echo,varargs%5Btyped,%5D
for that, use stdout.write("foo") etc |
@timotheecour cited Nim's documentation:
This was never true on Windows. Commit 527e20f makes it evident. |
Yeah, it's pretty bad. The Windows implementation needs to adhere to the documentation. Probably we need to use an |
echo
not thread safe, causing [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nimecho
not thread safe on windows, causing [appveyor] flaky test: Failure: reOutputsDiffer in tforstmt.nim
this just happened in https://ci.appveyor.com/project/dom96/nim/build/3984
tforstmt.nim:
the bug is that 2 echo statements have overlapped, causing 76 to print at once instead of each ech obeing interleaved
not sure how frequently that happens, but the fact that it did happen in appveyor shows that echo isn't thread safe
The text was updated successfully, but these errors were encountered: