diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-04-07 06:59:28 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-04-07 06:59:28 +0000 |
commit | a7d49883bbe1da5012327ff50437004ec573bd06 (patch) | |
tree | 9eea023ca3bb0dc28bc386a990895e948076fa5c /clang/tools/c-index-test/c-index-test.c | |
parent | 7a2f43336780ccc3eb702d810a8edaa61eb5f785 (diff) | |
download | bcm5719-llvm-a7d49883bbe1da5012327ff50437004ec573bd06.tar.gz bcm5719-llvm-a7d49883bbe1da5012327ff50437004ec573bd06.zip |
[Cygwin] Work around to flush stdout in a thread, or stdout in threads won't be flushed at exit.
llvm-svn: 154254
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index b76661fac65..f82d2d2820c 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -2781,6 +2781,9 @@ typedef struct thread_info { void thread_runner(void *client_data_v) { thread_info *client_data = client_data_v; client_data->result = cindextest_main(client_data->argc, client_data->argv); +#ifdef __CYGWIN__ + fflush(stdout); /* stdout is not flushed on Cygwin. */ +#endif } int main(int argc, const char **argv) { |