diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 10:03:40 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:18 +0100 |
commit | 6c55425a7de23a71d0abc3137f0015e878188bae (patch) | |
tree | e5183f130ea90cce0a11637afb9e40d09556aac3 /tools/tests/test-openssl.c | |
parent | 3acf285916968a05ea42b3ef0f9654a33e308da7 (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-openssl.c')
-rw-r--r-- | tools/tests/test-openssl.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |