diff options
author | Reid Kleckner <rnk@google.com> | 2016-03-11 20:54:14 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-03-11 20:54:14 +0000 |
commit | 3b07caef6647e81dbac623d3cea9bc7a21c755e2 (patch) | |
tree | 1396c72302218f8e590bfed8f99d6c3b36705ee7 | |
parent | 634ddf0becaf742093560bdcc0823ea2b9e3d88f (diff) | |
download | bcm5719-llvm-3b07caef6647e81dbac623d3cea9bc7a21c755e2.tar.gz bcm5719-llvm-3b07caef6647e81dbac623d3cea9bc7a21c755e2.zip |
Switch to fputs stderr to try to fix output buffering issues
llvm-svn: 263293
-rw-r--r-- | compiler-rt/test/asan/TestCases/printf-4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/printf-4.c b/compiler-rt/test/asan/TestCases/printf-4.c index d49a06ff91a..8a9545a0831 100644 --- a/compiler-rt/test/asan/TestCases/printf-4.c +++ b/compiler-rt/test/asan/TestCases/printf-4.c @@ -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 |