--- a/src/unit_tests.cpp 2009-01-23 01:51:02.000000000 +0200 +++ b/src/unit_tests.cpp 2012-12-24 00:16:13.836225456 +0200 @@ -25,23 +25,23 @@ TEST("create", encfs_stash_new(crypt_dir, mount_dir, PASSWORD1)); sleep(1); TEST("unmount", encfs_stash_unmount(mount_dir)); - TEST("mount", encfs_stash_mount(crypt_dir, mount_dir, PASSWORD1, 0, &output)); + TEST("mount", encfs_stash_mount(crypt_dir, mount_dir, PASSWORD1, 0, false, &output)); OUTPUT(); TEST("unmount", encfs_stash_unmount(mount_dir)); TEST("change password", encfs_stash_change_password(crypt_dir, PASSWORD1, PASSWORD2, &output)); OUTPUT(); - TEST("mount", encfs_stash_mount(crypt_dir, mount_dir, PASSWORD2, 0, &output)); + TEST("mount", encfs_stash_mount(crypt_dir, mount_dir, PASSWORD2, 0, false, &output)); OUTPUT(); sleep(1); TEST("unmount", encfs_stash_unmount(mount_dir)); - TEST("incorrect password mount", !encfs_stash_mount(crypt_dir, mount_dir, "blah", 0, &output)); + TEST("incorrect password mount", !encfs_stash_mount(crypt_dir, mount_dir, "blah", 0, false, &output)); OUTPUT(); system("touch unit_test_mount/file"); - TEST("non-empty mount point mount", !encfs_stash_mount(crypt_dir, mount_dir, PASSWORD2, 0, &output)); + TEST("non-empty mount point mount", !encfs_stash_mount(crypt_dir, mount_dir, PASSWORD2, 0, false, &output)); OUTPUT(); TEST("get_info", encfs_stash_get_info(crypt_dir, &output)); @@ -51,4 +51,8 @@ system("rm -rf unit_test_crypt unit_test_mount"); printf("%d tests passed, %d tests failed\n", passed, failed); + + if (failed > 0) { + return 1; + } }