Commit cbbe0e22 authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[test] Fix return of int from bool function

Fix CheckBaselineExpectations returning 2 when it can't read its input
file. Since this was originally just in main, convert it to std::exit.

Change-Id: I70ae6fbc6e5e12b748d2ab1cc83b1deb67a8f861
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1710659
Auto-Submit: Dan Elphick <delphick@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Reviewed-by: 's avatarMythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62833}
parent 30e21589
...@@ -548,7 +548,7 @@ bool CheckBaselineExpectations(const std::string& input_filename, ...@@ -548,7 +548,7 @@ bool CheckBaselineExpectations(const std::string& input_filename,
std::ifstream input_stream(input_filename); std::ifstream input_stream(input_filename);
if (!input_stream.is_open()) { if (!input_stream.is_open()) {
REPORT_ERROR("Could not open " << input_filename << " for reading."); REPORT_ERROR("Could not open " << input_filename << " for reading.");
return 2; std::exit(2);
} }
bool check_failed = false; bool check_failed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment