Skip to content

Commit 3dc4028

Browse files
committed
REMOVE ME: deliberately cause segfault in unittests
1 parent 8163fee commit 3dc4028

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unittests/main.c

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ int main(void)
3535
#ifndef NO_TEST_SUITES
3636
UNCURRY(RUN_TEST_SUITES, TEST_SUITES)
3737
#endif
38+
/* segfault! */
39+
char *fail = (char*)0;
40+
while(1) *fail++ = '\0';
3841
TESTS_END();
3942

4043
return 0;

0 commit comments

Comments
 (0)