We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04e8710 commit 8a91cecCopy full SHA for 8a91cec
1 file changed
tests/parse_many_test.cpp
@@ -101,11 +101,13 @@ bool validate(const char *dirname) {
101
printf("size of file in bytes: %zu \n", json.size());
102
everything_fine = false;
103
}
104
- // issue 570, we just want to check for segfault
105
- simdjson::document::parser parser;
106
- for (const simdjson::document &doc : parser.load_many(fullpath)) {
107
- auto iter = simdjson::document::iterator(doc);
108
- //do something
+ if(!error) {
+ // issue 570, we just want to check for segfault
+ simdjson::document::parser parser;
+ for (const simdjson::document &doc : parser.load_many(fullpath)) {
+ auto iter = simdjson::document::iterator(doc);
109
+ //do something
110
+ }
111
112
free(fullpath);
113
0 commit comments