From: Joel Rosdahl Date: Mon, 2 Aug 2010 22:17:57 +0000 (+0200) Subject: testfw: Format code to use a more consistent coding style X-Git-Tag: v3.1~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c122428ba47df6c33e7a4f13a25684ce6e61b7a9;p=thirdparty%2Fccache.git testfw: Format code to use a more consistent coding style --- diff --git a/test/framework.c b/test/framework.c index 87a475b5e..65082a72b 100644 --- a/test/framework.c +++ b/test/framework.c @@ -114,7 +114,8 @@ cct_run(suite_fn *suites, int verbose_output) return failed_asserts > 0 ? 1 : 0; } -void cct_suite_begin(const char *name) +void +cct_suite_begin(const char *name) { verify_test_suite_name(name); if (verbose) { @@ -128,7 +129,8 @@ void cct_suite_begin(const char *name) failed_asserts_before_test = failed_tests; /* For first cct_test_end(). */ } -void cct_suite_end() +void +cct_suite_end() { cct_chdir(dir_before_suite); free(dir_before_suite); @@ -140,7 +142,8 @@ void cct_suite_end() } } -void cct_test_begin(const char *name) +void +cct_test_begin(const char *name) { extern char *cache_logfile; @@ -158,7 +161,8 @@ void cct_test_begin(const char *name) cache_logfile = getenv("CCACHE_LOGFILE"); } -void cct_test_end() +void +cct_test_end() { if (dir_before_test) { cct_chdir(dir_before_test); @@ -288,7 +292,8 @@ cct_check_args_eq(const char *file, int line, const char *expression, return result; } -void cct_chdir(const char *path) +void +cct_chdir(const char *path) { if (chdir(path) != 0) { fprintf(stderr, "chdir: %s: %s", path, strerror(errno)); @@ -307,7 +312,8 @@ cct_wipe(const char *path) free(command); } -void cct_create_fresh_dir(const char *path) +void +cct_create_fresh_dir(const char *path) { cct_wipe(path); if (mkdir(path, 0777) != 0) {