@@ -141,11 +141,14 @@ static int do_action(const char* arg)
141
141
} else if (!strcmp (arg , "assert" )) {
142
142
__assert ("some_file.c" , 123 , "false" );
143
143
} else if (!strcmp (arg , "assert2" )) {
144
- __assert2 ("some_file.c" , 123 , "some_function" , "false" );
144
+ __assert2 ("some_file.c" , 123 , "some_function" , "false" );
145
145
} else if (!strcmp (arg , "LOG_ALWAYS_FATAL" )) {
146
146
LOG_ALWAYS_FATAL ("hello %s" , "world" );
147
147
} else if (!strcmp (arg , "LOG_ALWAYS_FATAL_IF" )) {
148
148
LOG_ALWAYS_FATAL_IF (true, "hello %s" , "world" );
149
+ } else if (!strcmp (arg , "SIGFPE" )) {
150
+ raise (SIGFPE );
151
+ return EXIT_SUCCESS ;
149
152
} else if (!strcmp (arg , "SIGPIPE" )) {
150
153
int pipe_fds [2 ];
151
154
pipe (pipe_fds );
@@ -177,6 +180,7 @@ static int do_action(const char* arg)
177
180
fprintf (stderr , " assert2 call assert() with a function\n" );
178
181
fprintf (stderr , " LOG_ALWAYS_FATAL call LOG_ALWAYS_FATAL\n" );
179
182
fprintf (stderr , " LOG_ALWAYS_FATAL_IF call LOG_ALWAYS_FATAL\n" );
183
+ fprintf (stderr , " SIGFPE cause a SIGFPE\n" );
180
184
fprintf (stderr , " SIGPIPE cause a SIGPIPE\n" );
181
185
fprintf (stderr , " SIGSEGV cause a SIGSEGV at address 0x0 (synonym: crash)\n" );
182
186
fprintf (stderr , " SIGSEGV-non-null cause a SIGSEGV at a non-zero address\n" );
0 commit comments