Run saved .crash test cases in native harness

This commit is contained in:
Joe Ranweiler
2018-02-14 12:30:14 -08:00
parent 7fbb966777
commit 0b82d4e409
+11 -2
View File
@@ -364,8 +364,17 @@ static bool IsTestCaseFile(const char *name) {
return false;
}
if (strcmp(suffix, ".pass") == 0 || strcmp(suffix, ".fail") == 0) {
return true;
const char *extensions[] = {
".pass",
".fail",
".crash",
};
const size_t ext_count = sizeof(extensions) / sizeof(char *);
for (size_t i = 0; i < ext_count; i++) {
if (!strcmp(suffix, extensions[i])) {
return true;
}
}
return false;