Patchwork [1,of,2] test-obsolete: conditionalize a test dependent on chmod

login
register
mail settings
Submitter Matt Harbison
Date Feb. 19, 2016, 4:20 a.m.
Message ID <d50b77bee718346ca920.1455855628@Envy>
Download mbox | patch
Permalink /patch/13261/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Harbison - Feb. 19, 2016, 4:20 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1453344997 18000
#      Wed Jan 20 21:56:37 2016 -0500
# Node ID d50b77bee718346ca920fd3ab452f8cc1e1be49c
# Parent  6c3ab048228f9b1760bf0b6baa307a4ec361c638
test-obsolete: conditionalize a test dependent on chmod
Yuya Nishihara - Feb. 20, 2016, 8:52 a.m.
On Thu, 18 Feb 2016 23:20:28 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1453344997 18000
> #      Wed Jan 20 21:56:37 2016 -0500
> # Node ID d50b77bee718346ca920fd3ab452f8cc1e1be49c
> # Parent  6c3ab048228f9b1760bf0b6baa307a4ec361c638
> test-obsolete: conditionalize a test dependent on chmod

Pushed them to the clowncopter, thanks.

Patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -960,6 +960,7 @@ 
   $ hg log -r . -T '{node}' --debug
   8fd96dfc63e51ed5a8af1bec18eb4b19dbf83812 (no-eol)
 
+#if unix-permissions
 Check that wrong hidden cache permission does not crash
 
   $ chmod 000 .hg/cache/hidden
@@ -967,6 +968,7 @@ 
   cannot read hidden cache
   error writing hidden changesets cache
   8fd96dfc63e51ed5a8af1bec18eb4b19dbf83812 (no-eol)
+#endif
 
 Test cache consistency for the visible filter
 1) We want to make sure that the cached filtered revs are invalidated when