diff options
Diffstat (limited to 'test/flushrefresh.c')
-rw-r--r-- | test/flushrefresh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/flushrefresh.c b/test/flushrefresh.c index 6454cee..745b6ef 100644 --- a/test/flushrefresh.c +++ b/test/flushrefresh.c @@ -66,23 +66,23 @@ static FILE *errorfile; #define ERRFILE "flushrefresh_ERROR" #define PROCESS_ERROR \ - { \ + do { \ errorfile = fopen(ERRFILE, "w+"); \ fprintf(errorfile, "Error occurred in flushrefresh.\n"); \ fflush(errorfile); \ fclose(errorfile); \ TEST_ERROR; \ - } + } while (0) #define CLEANUP_FILES \ - { \ + do { \ HDremove(ERRFILE); \ HDremove(FILENAME); \ HDremove(SIGNAL_TO_SCRIPT); \ HDremove(SIGNAL_BETWEEN_PROCESSES_1); \ HDremove(SIGNAL_BETWEEN_PROCESSES_2); \ HDremove(SIGNAL_FROM_SCRIPT); \ - } + } while (0) /* ===================== */ /* Function Declarations */ @@ -177,7 +177,7 @@ main(int argc, char *argv[]) else { /* Illegal number of arguments supplied. Error. */ fprintf(stderr, "Error. %d is an Invalid number of arguments to main().\n", argc); - PROCESS_ERROR + PROCESS_ERROR; } /* end if */ return EXIT_SUCCESS; |