tests: Fix function-like macros
Turns the results of these macros from compound to regular statements using the old `do { ... } while(0)` trick. Must have for function-like macros.
parent
96182ce8
No related branches found
No related tags found
Showing
- tests/ctype.c 6 additions, 4 deletionstests/ctype.c
- tests/stdlib/bsearch.c 44 additions, 46 deletionstests/stdlib/bsearch.c
- tests/test_helpers.h 30 additions, 27 deletionstests/test_helpers.h
- tests/unistd/getopt.c 2 additions, 2 deletionstests/unistd/getopt.c
- tests/unistd/getopt_long.c 3 additions, 2 deletionstests/unistd/getopt_long.c
- tests/unistd/pathconf.c 26 additions, 25 deletionstests/unistd/pathconf.c
- tests/unistd/sysconf.c 19 additions, 18 deletionstests/unistd/sysconf.c
Loading
Please register or sign in to comment