[compiler-rt] r263293 - Switch to fputs stderr to try to fix output buffering issues

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 12:54:14 PST 2016


Author: rnk
Date: Fri Mar 11 14:54:14 2016
New Revision: 263293

URL: http://llvm.org/viewvc/llvm-project?rev=263293&view=rev
Log:
Switch to fputs stderr to try to fix output buffering issues

Modified:
    compiler-rt/trunk/test/asan/TestCases/printf-4.c

Modified: compiler-rt/trunk/test/asan/TestCases/printf-4.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-4.c?rev=263293&r1=263292&r2=263293&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-4.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-4.c Fri Mar 11 14:54:14 2016
@@ -12,10 +12,10 @@ int main() {
   volatile float f = 1.239;
   volatile char s[] = "34";
   volatile char buf[2];
-  puts("before sprintf");
+  fputs(stderr, "before sprintf");
   sprintf((char *)buf, "%c %d %.3f %s\n", c, x, f, s);
-  puts("after sprintf");
-  puts((const char *)buf);
+  fputs(stderr, "after sprintf");
+  fputs(stderr, (const char *)buf);
   return 0;
   // Check that size of output buffer is sanitized.
   // CHECK-ON: before sprintf




More information about the llvm-commits mailing list