diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-12-03 12:54:54 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-12-03 12:54:54 -0800 |
commit | 4b31ffa48856fb1f8293fd4682e603406a6d8e5f (patch) | |
tree | 335fb9fb2db2f99d6eb33441ff4e5bb070efd1dd /conformance/conformance_test_runner.cc | |
parent | a3faf080e355d2d89cb7a93a92f76ea5462c2ad0 (diff) | |
download | protobuf-4b31ffa48856fb1f8293fd4682e603406a6d8e5f.tar.gz protobuf-4b31ffa48856fb1f8293fd4682e603406a6d8e5f.tar.bz2 protobuf-4b31ffa48856fb1f8293fd4682e603406a6d8e5f.zip |
Added Python failure lists, and fixes to make sure failure propagates.
Diffstat (limited to 'conformance/conformance_test_runner.cc')
-rw-r--r-- | conformance/conformance_test_runner.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/conformance/conformance_test_runner.cc b/conformance/conformance_test_runner.cc index 780e1c44..c3b3db22 100644 --- a/conformance/conformance_test_runner.cc +++ b/conformance/conformance_test_runner.cc @@ -202,6 +202,12 @@ void UsageError() { void ParseFailureList(const char *filename, vector<string>* failure_list) { std::ifstream infile(filename); + + if (!infile.is_open()) { + fprintf(stderr, "Couldn't open failure list file: %s\n", filename); + exit(1); + } + for (string line; getline(infile, line);) { // Remove whitespace. line.erase(std::remove_if(line.begin(), line.end(), ::isspace), |