From 0ea1969275c4c403b99bc89544877b65c76c593e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 9 Jun 2016 16:16:39 -0400 Subject: [PATCH] update test suite for lock/unlock with missing file content change in v6 --- Test.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Test.hs b/Test.hs index 0a9b6267a7..e432f54433 100644 --- a/Test.hs +++ b/Test.hs @@ -564,10 +564,11 @@ test_preferred_content = intmpclonerepo $ do test_lock :: Assertion test_lock = intmpclonerepoInDirect $ do annexed_notpresent annexedfile - ifM (unlockedFiles <$> getTestMode) - ( not <$> git_annex "lock" [annexedfile] @? "lock failed to fail with not present file" - , not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file" - ) + unlessM (annexeval Annex.Version.versionSupportsUnlockedPointers) $ + ifM (unlockedFiles <$> getTestMode) + ( not <$> git_annex "lock" [annexedfile] @? "lock failed to fail with not present file" + , not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file" + ) annexed_notpresent annexedfile -- regression test: unlock of newly added, not committed file