Commit 839b2495 by Edward Thomson

tests: update to latest clar

parent 6fb234b5
...@@ -94,8 +94,10 @@ ...@@ -94,8 +94,10 @@
static void fs_rm(const char *_source); static void fs_rm(const char *_source);
static void fs_copy(const char *_source, const char *dest); static void fs_copy(const char *_source, const char *dest);
#ifdef CLAR_FIXTURE_PATH
static const char * static const char *
fixture_path(const char *base, const char *fixture_name); fixture_path(const char *base, const char *fixture_name);
#endif
struct clar_error { struct clar_error {
const char *file; const char *file;
......
#ifdef CLAR_FIXTURE_PATH
static const char * static const char *
fixture_path(const char *base, const char *fixture_name) fixture_path(const char *base, const char *fixture_name)
{ {
...@@ -20,7 +21,6 @@ fixture_path(const char *base, const char *fixture_name) ...@@ -20,7 +21,6 @@ fixture_path(const char *base, const char *fixture_name)
return _path; return _path;
} }
#ifdef CLAR_FIXTURE_PATH
const char *cl_fixture(const char *fixture_name) const char *cl_fixture(const char *fixture_name)
{ {
return fixture_path(CLAR_FIXTURE_PATH, fixture_name); return fixture_path(CLAR_FIXTURE_PATH, fixture_name);
......
...@@ -295,7 +295,9 @@ fs_copy(const char *_source, const char *_dest) ...@@ -295,7 +295,9 @@ fs_copy(const char *_source, const char *_dest)
void void
cl_fs_cleanup(void) cl_fs_cleanup(void)
{ {
#ifdef CLAR_FIXTURE_PATH
fs_rm(fixture_path(_clar_path, "*")); fs_rm(fixture_path(_clar_path, "*"));
#endif
} }
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment