[cfe-commits] r154254 - in /cfe/trunk/tools: c-arcmt-test/c-arcmt-test.c c-index-test/c-index-test.c
NAKAMURA Takumi
geek4civic at gmail.com
Fri Apr 6 23:59:28 PDT 2012
Author: chapuni
Date: Sat Apr 7 01:59:28 2012
New Revision: 154254
URL: http://llvm.org/viewvc/llvm-project?rev=154254&view=rev
Log:
[Cygwin] Work around to flush stdout in a thread, or stdout in threads won't be flushed at exit.
Modified:
cfe/trunk/tools/c-arcmt-test/c-arcmt-test.c
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-arcmt-test/c-arcmt-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-arcmt-test/c-arcmt-test.c?rev=154254&r1=154253&r2=154254&view=diff
==============================================================================
--- cfe/trunk/tools/c-arcmt-test/c-arcmt-test.c (original)
+++ cfe/trunk/tools/c-arcmt-test/c-arcmt-test.c Sat Apr 7 01:59:28 2012
@@ -97,6 +97,9 @@
void thread_runner(void *client_data_v) {
thread_info *client_data = client_data_v;
client_data->result = carcmttest_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) {
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=154254&r1=154253&r2=154254&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Sat Apr 7 01:59:28 2012
@@ -2781,6 +2781,9 @@
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) {
More information about the cfe-commits
mailing list