summaryrefslogtreecommitdiff
path: root/test/framework.c
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2010-07-25 11:02:57 +0200
committerJoel Rosdahl <joel@rosdahl.net>2010-08-01 17:20:03 +0200
commitc1dcc3fc5336dc75a0097bb7db0a5123aff74d14 (patch)
tree36c90ae06bf5cf6a25e3e65335c8f4984b1ca768 /test/framework.c
parent15edf50279c44bc2df28158a6a61f4f029101bc2 (diff)
downloadccache-c1dcc3fc5336dc75a0097bb7db0a5123aff74d14.tar.gz
testfw: Add some utility functions
Diffstat (limited to 'test/framework.c')
-rw-r--r--test/framework.c13
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);
- }
-}