6 char* strdup_may_fail(const char* src
)
8 return INJECT_GOODBAD (getenv("EXPR_FAULT"), strdup(src
), NULL
);
15 char* str
= strdup_may_fail("test");
17 CHECK (str
, "function failed");
19 INJECT_FAULT (getenv("STMT_FAULT"), str
=NULL
);
21 CHECK (str
, "statement injected");