@@ -47,7 +47,7 @@ static int alias_1(void)
4747 printf ("\n" );
4848 }
4949
50- return EXIT_SUCCESS ;
50+ return 0 ;
5151}
5252DEFINE_TEST (alias_1 ,
5353 .description = "check if alias_normalize does the right thing" ,
@@ -75,7 +75,7 @@ static int test_freadline_wrapped(void)
7575 }
7676
7777 fclose (fp );
78- return EXIT_SUCCESS ;
78+ return 0 ;
7979}
8080DEFINE_TEST (test_freadline_wrapped ,
8181 .description = "check if freadline_wrapped() does the right thing" ,
@@ -94,7 +94,7 @@ static int test_strchr_replace(void)
9494 strchr_replace (s , 's' , 'C' );
9595 TS_ASSERT (streq (s , res ));
9696
97- return EXIT_SUCCESS ;
97+ return 0 ;
9898}
9999DEFINE_TEST (test_strchr_replace ,
100100 .description = "check implementation of strchr_replace()" );
@@ -122,7 +122,7 @@ static int test_underscores(void)
122122 TS_ASSERT (streq (val , teststr [i ].res ));
123123 }
124124
125- return EXIT_SUCCESS ;
125+ return 0 ;
126126}
127127DEFINE_TEST (test_underscores , .description = "check implementation of underscores()" );
128128
@@ -156,7 +156,7 @@ static int test_path_ends_with_kmod_ext(void)
156156 teststr [i ].res );
157157 }
158158
159- return EXIT_SUCCESS ;
159+ return 0 ;
160160}
161161DEFINE_TEST (test_path_ends_with_kmod_ext ,
162162 .description = "check implementation of path_ends_with_kmod_ext()" );
@@ -174,7 +174,7 @@ static int test_write_str_safe(void)
174174 write_str_safe (fd , s , strlen (s ));
175175 close (fd );
176176
177- return EXIT_SUCCESS ;
177+ return 0 ;
178178}
179179DEFINE_TEST (test_write_str_safe ,
180180 .description = "check implementation of write_str_safe()" ,
@@ -201,7 +201,7 @@ static int test_uadd32_overflow(void)
201201 overflow = uadd32_overflow (UINT32_MAX , 1 , & res );
202202 TS_ASSERT (overflow );
203203
204- return EXIT_SUCCESS ;
204+ return 0 ;
205205}
206206DEFINE_TEST (test_uadd32_overflow ,
207207 .description = "check implementation of uadd32_overflow()" );
@@ -218,7 +218,7 @@ static int test_uadd64_overflow(void)
218218 overflow = uadd64_overflow (UINT64_MAX , 1 , & res );
219219 TS_ASSERT (overflow );
220220
221- return EXIT_SUCCESS ;
221+ return 0 ;
222222}
223223DEFINE_TEST (test_uadd64_overflow ,
224224 .description = "check implementation of uadd64_overflow()" );
@@ -235,7 +235,7 @@ static int test_umul32_overflow(void)
235235 overflow = umul32_overflow (UINT32_MAX , 0x10 , & res );
236236 TS_ASSERT (overflow );
237237
238- return EXIT_SUCCESS ;
238+ return 0 ;
239239}
240240DEFINE_TEST (test_umul32_overflow ,
241241 .description = "check implementation of umul32_overflow()" );
@@ -252,7 +252,7 @@ static int test_umul64_overflow(void)
252252 overflow = umul64_overflow (UINT64_MAX , 0x10 , & res );
253253 TS_ASSERT (overflow );
254254
255- return EXIT_SUCCESS ;
255+ return 0 ;
256256}
257257DEFINE_TEST (test_umul64_overflow ,
258258 .description = "check implementation of umul64_overflow()" );
@@ -289,7 +289,7 @@ static int test_backoff_time(void)
289289 get_backoff_delta_msec (now_msec () - 10 , & delta );
290290 TS_ASSERT (delta == 0 );
291291
292- return EXIT_SUCCESS ;
292+ return 0 ;
293293}
294294DEFINE_TEST (test_backoff_time ,
295295 .description = "check implementation of get_backoff_delta_msec()" );
0 commit comments