diff options
author | Armin Rigo <arigo@tunes.org> | 2019-02-13 12:49:22 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-02-13 12:49:22 +0100 |
commit | 8db64b857f042f03f66537bd2326aa733f4b1ada (patch) | |
tree | fe47cfe73edf620f194f570403a7f860553fa514 /testing | |
parent | 389a2ae889f8b38d0138229a2dbbd7bd0f8c1564 (diff) | |
download | cffi-8db64b857f042f03f66537bd2326aa733f4b1ada.tar.gz |
Found out a way that appears to fix the problems on Windows
Diffstat (limited to 'testing')
-rw-r--r-- | testing/embedding/test_thread.py | 5 | ||||
-rw-r--r-- | testing/embedding/thread3-test.c | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/testing/embedding/test_thread.py b/testing/embedding/test_thread.py index 34d74a8..1895076 100644 --- a/testing/embedding/test_thread.py +++ b/testing/embedding/test_thread.py @@ -56,11 +56,6 @@ class TestThread(EmbeddingTests): for j in range(10): output = self._take_out(output, "adding 40 and 2 and 100\n") output = self._take_out(output, "adding 1000, 200, 30, 4\n") - # Windows note: fails occasionally, but it looks like a Windows - # bug somehow. If I add fprintf(stderr, "foo\n") after the - # final printf("done\n") in thread3-test.c, then it gets printed, - # even though the "done\n" part is very occasionally missing - # from the output. assert output == ("starting\n" "prepADD2\n" "done\n") diff --git a/testing/embedding/thread3-test.c b/testing/embedding/thread3-test.c index fa549af..69ada27 100644 --- a/testing/embedding/thread3-test.c +++ b/testing/embedding/thread3-test.c @@ -51,5 +51,6 @@ int main(void) assert(status == 0); } printf("done\n"); + fflush(stdout); /* this is occasionally needed on Windows */ return 0; } |