diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-25 23:22:40 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-25 23:22:40 +0200 |
commit | fd6bd9d9090213d4644fc0a96f06fb34ce5365fc (patch) | |
tree | e2d5facad8bb34b84596ee07999fe588dd0c42fc /tests/abort-nodump.c | |
parent | Add more test cases (diff) | |
download | sctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.gz sctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.bz2 sctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.xz |
Some code improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | tests/abort-nodump.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/abort-nodump.c b/tests/abort-nodump.c new file mode 100644 index 0000000..9e13595 --- /dev/null +++ b/tests/abort-nodump.c @@ -0,0 +1,9 @@ +#include <sys/prctl.h> +#include <stdlib.h> + +int +main(void) +{ + prctl(PR_SET_DUMPABLE, 0); + abort(); +} |