diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-08 14:52:25 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-08 14:52:25 -0700 |
commit | b51b61d75aa7a84d6c71d68a214ae43181b8ffda (patch) | |
tree | 22442b658386ca1a57bc1a6fecff46eaa5dd4479 | |
parent | b97db79ff44b1436dd84f0b19c05db68c2b82cce (diff) |
Smol readme
-rw-r--r-- | readme.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +# segfault-suite + +A small test framework that catches segmentation faults. + +## Dependencies + +1. POSIX compliant OS (`fork`, `waitpid`) + +## Usage + +```C +#include "test-lib.h" + +int badTest() { + int* ptr = (int*)0; + *ptr = 5; + return 0; +} + +int main() { + syncTest("badTest", "it segfaulted", badTest); + return 0; +} +``` |