diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2010-07-25 11:02:57 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2010-08-01 17:20:03 +0200 |
commit | c1dcc3fc5336dc75a0097bb7db0a5123aff74d14 (patch) | |
tree | 36c90ae06bf5cf6a25e3e65335c8f4984b1ca768 /test/framework.c | |
parent | 15edf50279c44bc2df28158a6a61f4f029101bc2 (diff) | |
download | ccache-c1dcc3fc5336dc75a0097bb7db0a5123aff74d14.tar.gz |
testfw: Add some utility functions
Diffstat (limited to 'test/framework.c')
-rw-r--r-- | test/framework.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/framework.c b/test/framework.c index 88c9ba48..a5328afb 100644 --- a/test/framework.c +++ b/test/framework.c @@ -17,7 +17,7 @@ */ #include "ccache.h" -#include "framework.h" +#include "test/framework.h" #include <errno.h> #include <stdio.h> #if defined(HAVE_TERMIOS_H) @@ -307,14 +307,3 @@ void cct_create_fresh_dir(const char *path) abort(); } } - -void cct_create_file(const char *path, const char *content) -{ - FILE *f = fopen(path, "w"); - if (!f || fputs(content, f) < 0) { - fprintf(stderr, "cct_create_file: %s: %s", path, strerror(errno)); - } - if (f) { - fclose(f); - } -} |