Fix: assertion could abort on past failures

This commit is contained in:
Yinan Zhang
2020-03-18 18:06:47 -07:00
parent b30a5c2f90
commit ccdc70a5ce
2 changed files with 55 additions and 48 deletions

View File

@@ -233,11 +233,6 @@ p_test_fail(const char *prefix, const char *message) {
test_status = test_status_fail;
}
bool
p_test_failed() {
return test_status == test_status_fail;
}
void
strncpy_cond(void *dst, const char *src, bool cond) {
if (cond) {