test-tools: check for unix permissions for hardlinking
authorMatt Mackall <mpm@selenic.com>
Sat, 17 Jan 2015 15:54:03 -0800
changeset 23914 a2396b0fd608
parent 23913 bc59ff031700
child 23915 5b20e4c32117
test-tools: check for unix permissions for hardlinking
tests/test-tools.t
--- a/tests/test-tools.t	Sat Jan 17 15:28:56 2015 -0800
+++ b/tests/test-tools.t	Sat Jan 17 15:54:03 2015 -0800
@@ -56,11 +56,13 @@
   <<< no trailing newline
 #endif
 
+#if unix-permissions
   $ ln bar baz
   $ f bar -n baz -l --hexdump -t --sha1 --lines=9 -B 20
   bar: file, links=2, newer than baz, sha1=612ca68d0305c821750a
   0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.|
   0010: 39 0a                                           |9.|
+#endif
 
 #if unix-permissions symlink
   $ ln -s yadda l