Blame SOURCES/cryptsetup-2.0.4-fix-LUKS2-api-test.patch

7cdc99
diff -rupN cryptsetup-2.0.3.old/tests/api-test-2.c cryptsetup-2.0.3/tests/api-test-2.c
7cdc99
--- cryptsetup-2.0.3.old/tests/api-test-2.c	2019-03-27 21:31:18.684160803 +0100
7cdc99
+++ cryptsetup-2.0.3/tests/api-test-2.c	2019-03-27 21:32:14.762630391 +0100
7cdc99
@@ -2514,8 +2514,8 @@ static void Luks2Requirements(void)
7cdc99
 	FAIL_((r = crypt_set_label(cd, "label", "subsystem")), "Unmet requirements detected");
7cdc99
 	EQ_(r, -ETXTBSY);
7cdc99
 
7cdc99
-	/* crypt_repair (not implemented for luks2) */
7cdc99
-	FAIL_(crypt_repair(cd, CRYPT_LUKS2, NULL), "Not implemented");
7cdc99
+	/* crypt_repair (with current repair capabilities it's unrestricted) */
7cdc99
+	OK_(crypt_repair(cd, CRYPT_LUKS2, NULL));
7cdc99
 
7cdc99
 	/* crypt_keyslot_add_passphrase (restricted) */
7cdc99
 	FAIL_((r = crypt_keyslot_add_by_passphrase(cd, CRYPT_ANY_SLOT, "aaa", 3, "bbb", 3)), "Unmet requirements detected");