From 6c55425a7de23a71d0abc3137f0015e878188bae Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 10:03:40 +0100 Subject: 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 --- tools/tests/test-openssl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/tests/test-openssl.c') diff --git a/tools/tests/test-openssl.c b/tools/tests/test-openssl.c index d242b50..bce9be6 100644 --- a/tools/tests/test-openssl.c +++ b/tools/tests/test-openssl.c @@ -599,15 +599,20 @@ test_directory (CuTest *tc) CuAssertIntEquals (tc, true, ret); test_check_directory (tc, test.directory, ("Custom_Label.pem", "Custom_Label.1.pem", - "e5662767.1", "e5662767.0", "590d426f.1", "590d426f.0", NULL)); +#ifdef OS_UNIX + "e5662767.1", "e5662767.0", "590d426f.1", "590d426f.0", +#endif + NULL)); test_check_file (tc, test.directory, "Custom_Label.pem", SRCDIR "/files/cacert3-trusted-client-server-alias.pem"); test_check_file (tc, test.directory, "Custom_Label.1.pem", SRCDIR "/files/cacert3-trusted-alias.pem"); +#ifdef OS_UNIX test_check_symlink (tc, test.directory, "e5662767.0", "Custom_Label.pem"); test_check_symlink (tc, test.directory, "e5662767.1", "Custom_Label.1.pem"); test_check_symlink (tc, test.directory, "590d426f.0", "Custom_Label.pem"); test_check_symlink (tc, test.directory, "590d426f.1", "Custom_Label.1.pem"); +#endif teardown (tc); } -- cgit v1.1