tests: Replace returns with exits in the main functions
This will allow us to redefine the exit function. For example: ``` #define exit(code) { \ fprintf(stderr, "%s:%d: exit(%s) in function ‘%s’\n", __FILE__, __LINE__, #code, __func__); \ _exit(code); \ } ```
Showing
- tests/dirent/main.c 1 addition, 1 deletiontests/dirent/main.c
- tests/dirent/scandir.c 1 addition, 1 deletiontests/dirent/scandir.c
- tests/fcntl/create.c 2 additions, 2 deletionstests/fcntl/create.c
- tests/netdb/getaddrinfo.c 1 addition, 1 deletiontests/netdb/getaddrinfo.c
- tests/pwd.c 8 additions, 8 deletionstests/pwd.c
- tests/regex.c 2 additions, 2 deletionstests/regex.c
- tests/resource/getrusage.c 1 addition, 1 deletiontests/resource/getrusage.c
- tests/signal.c 2 additions, 2 deletionstests/signal.c
- tests/stdio/fgets.c 1 addition, 1 deletiontests/stdio/fgets.c
- tests/stdio/fread.c 1 addition, 1 deletiontests/stdio/fread.c
- tests/stdio/fseek.c 1 addition, 1 deletiontests/stdio/fseek.c
- tests/stdio/fwrite.c 3 additions, 3 deletionstests/stdio/fwrite.c
- tests/stdio/getc_unget.c 2 additions, 2 deletionstests/stdio/getc_unget.c
- tests/stdio/mutex.c 3 additions, 3 deletionstests/stdio/mutex.c
- tests/stdio/popen.c 2 additions, 2 deletionstests/stdio/popen.c
- tests/stdio/rename.c 2 additions, 2 deletionstests/stdio/rename.c
- tests/stdio/sprintf.c 2 additions, 2 deletionstests/stdio/sprintf.c
- tests/stdlib/a64l.c 2 additions, 2 deletionstests/stdlib/a64l.c
- tests/stdlib/bsearch.c 1 addition, 1 deletiontests/stdlib/bsearch.c
- tests/stdlib/env.c 1 addition, 1 deletiontests/stdlib/env.c
Loading
Please register or sign in to comment