aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-03-15 21:04:53 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-15 21:04:53 +0000
commit5067ef29d4f4e5a7f589dc5c4c362621c2523da0 (patch)
treee40530df8659b2705c2e50affa62070687f986ee
parent3abc30d6a60e0f0aa17469916ef92ec12bdd555d (diff)
parentdc0510ec17821f552b5be77d64ab40d3733b4703 (diff)
downloadbionic-5067ef29d4f4e5a7f589dc5c4c362621c2523da0.tar.gz
Merge "Flush all the streams if CHECK() fails." into main
-rw-r--r--tests/libs/CHECK.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libs/CHECK.h b/tests/libs/CHECK.h
index 5870b0731..a5902337c 100644
--- a/tests/libs/CHECK.h
+++ b/tests/libs/CHECK.h
@@ -26,7 +26,7 @@
static inline void check_failure(const char* file, int line, const char* function,
const char* failed_expression) {
fprintf(stderr, "%s:%d: %s: assertion \"%s\" failed\n", file, line, function, failed_expression);
- fflush(stderr);
+ fflush(NULL);
abort();
}