commit | 082e953a134ad423a00b8859f9daf5708e729260 | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Thu Aug 25 15:32:33 2022 +0100 |
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 06 21:21:32 2023 +0000 |
tree | a5693e811d543b05e868fd3e8a46e630c9832420 | |
parent | abb9af83bc223eca0ffffce246ed551f2fcd11e1 [diff] |
test_fips: flush stdout before aborting on failure. When running on a device via `adb shell`, stdout will be a pipe and so is block buffered, leading to lost output if abort() is called before flushing. Change-Id: Ica67132fb8b2b1e7967df89fa3d0a9a793d8cbbf Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/54025 Reviewed-by: Adam Langley <agl@google.com> Reviewed-by: Bob Beck <bbe@google.com> Commit-Queue: Bob Beck <bbe@google.com>
diff --git a/util/fipstools/test_fips.c b/util/fipstools/test_fips.c index 42ed96b..ed95b8c 100644 --- a/util/fipstools/test_fips.c +++ b/util/fipstools/test_fips.c
@@ -313,5 +313,6 @@ err: printf("FAIL\n"); + fflush(stdout); abort(); }