summaryrefslogtreecommitdiff
path: root/tools/tests/test.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 10:03:40 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:18 +0100
commit6c55425a7de23a71d0abc3137f0015e878188bae (patch)
treee5183f130ea90cce0a11637afb9e40d09556aac3 /tools/tests/test.c
parent3acf285916968a05ea42b3ef0f9654a33e308da7 (diff)
Windows doesn't support symlinks, chmod, or atomic renames
* Don't create symlinks on windows * No atomic renames, so delete and then rename * Make sure to close files before unlinking on windows * No chmod permissions on windows
Diffstat (limited to 'tools/tests/test.c')
-rw-r--r--tools/tests/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tests/test.c b/tools/tests/test.c
index 61fda83..56e65cd 100644
--- a/tools/tests/test.c
+++ b/tools/tests/test.c
@@ -121,6 +121,8 @@ test_check_data_msg (CuTest *tc,
free (filedata);
}
+#ifdef OS_UNIX
+
void
test_check_symlink_msg (CuTest *tc,
const char *file,
@@ -144,6 +146,8 @@ test_check_symlink_msg (CuTest *tc,
free (filename);
}
+#endif /* OS_UNIX */
+
p11_dict *
test_check_directory_files (const char *file,
...)