projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634ddf0
)
Switch to fputs stderr to try to fix output buffering issues
author
Reid Kleckner
<rnk@google.com>
Fri, 11 Mar 2016 20:54:14 +0000
(20:54 +0000)
committer
Reid Kleckner
<rnk@google.com>
Fri, 11 Mar 2016 20:54:14 +0000
(20:54 +0000)
llvm-svn: 263293
compiler-rt/test/asan/TestCases/printf-4.c
patch
|
blob
|
history
diff --git
a/compiler-rt/test/asan/TestCases/printf-4.c
b/compiler-rt/test/asan/TestCases/printf-4.c
index
d49a06f
..
8a9545a
100644
(file)
--- 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