summaryrefslogtreecommitdiffstats
path: root/test/test_util.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-26 19:22:03 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 14:15:00 +0100
commit31cc05d5ef6e840ebe2b4c265f374f913f4758cc (patch)
tree87302811f8df1f16e0bd4785ff405906a993b7d0 /test/test_util.c
parent7a51f0b8e95d29b5e053db97bf72094e847ee7ef (diff)
downloadlilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.tar.gz
lilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.tar.bz2
lilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.zip
Format all code with clang-format
Diffstat (limited to 'test/test_util.c')
-rw-r--r--test/test_util.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/test_util.c b/test/test_util.c
index 9055e88..db7eaed 100644
--- a/test/test_util.c
+++ b/test/test_util.c
@@ -19,14 +19,14 @@
#undef NDEBUG
#ifdef _WIN32
-# include "lilv_internal.h"
+# include "lilv_internal.h"
#endif
#include "../src/filesystem.h"
#ifdef _WIN32
-# include <io.h>
-# define mkstemp(pat) _mktemp(pat)
+# include <io.h>
+# define mkstemp(pat) _mktemp(pat)
#endif
#include <assert.h>
@@ -37,31 +37,31 @@
int
main(void)
{
- assert(!lilv_path_canonical(NULL));
+ assert(!lilv_path_canonical(NULL));
- char a_path[16];
- char b_path[16];
- strncpy(a_path, "copy_a_XXXXXX", sizeof(a_path));
- strncpy(b_path, "copy_b_XXXXXX", sizeof(b_path));
- mkstemp(a_path);
- mkstemp(b_path);
+ char a_path[16];
+ char b_path[16];
+ strncpy(a_path, "copy_a_XXXXXX", sizeof(a_path));
+ strncpy(b_path, "copy_b_XXXXXX", sizeof(b_path));
+ mkstemp(a_path);
+ mkstemp(b_path);
- FILE* fa = fopen(a_path, "w");
- FILE* fb = fopen(b_path, "w");
- fprintf(fa, "AA\n");
- fprintf(fb, "AB\n");
- fclose(fa);
- fclose(fb);
+ FILE* fa = fopen(a_path, "w");
+ FILE* fb = fopen(b_path, "w");
+ fprintf(fa, "AA\n");
+ fprintf(fb, "AB\n");
+ fclose(fa);
+ fclose(fb);
- assert(lilv_copy_file("does/not/exist", "copy"));
- assert(lilv_copy_file(a_path, "not/a/dir/copy"));
- assert(!lilv_copy_file(a_path, "copy_c"));
- assert(!lilv_file_equals(a_path, b_path));
- assert(lilv_file_equals(a_path, a_path));
- assert(lilv_file_equals(a_path, "copy_c"));
- assert(!lilv_file_equals("does/not/exist", b_path));
- assert(!lilv_file_equals(a_path, "does/not/exist"));
- assert(!lilv_file_equals("does/not/exist", "/does/not/either"));
+ assert(lilv_copy_file("does/not/exist", "copy"));
+ assert(lilv_copy_file(a_path, "not/a/dir/copy"));
+ assert(!lilv_copy_file(a_path, "copy_c"));
+ assert(!lilv_file_equals(a_path, b_path));
+ assert(lilv_file_equals(a_path, a_path));
+ assert(lilv_file_equals(a_path, "copy_c"));
+ assert(!lilv_file_equals("does/not/exist", b_path));
+ assert(!lilv_file_equals(a_path, "does/not/exist"));
+ assert(!lilv_file_equals("does/not/exist", "/does/not/either"));
- return 0;
+ return 0;
}