changeset 51956:3b46e8e6a401

tests: provide an alternate fake lock for filesystems without symlink support
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 04 Oct 2024 13:26:29 -0400
parents b8528c8bebf5
children 5e2f0fec0a47
files tests/test-chainsaw-update.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-chainsaw-update.t	Fri Oct 04 12:53:02 2024 -0400
+++ b/tests/test-chainsaw-update.t	Fri Oct 04 13:26:29 2024 -0400
@@ -105,8 +105,13 @@
 operation would not break, because the hostnames registered in locks differ
 from the current hostname (happens a lot with succesive containers):
 
+#if symlink
   $ ln -s invalid.host.test/effffffc:171814 .hg/store/lock
   $ ln -s invalid.host.test/effffffc:171814 .hg/wlock
+#else
+  $ printf 'invalid.host.test/effffffc:171814' > .hg/store/lock
+  $ printf 'invalid.host.test/effffffc:171814' > .hg/wlock
+#endif
   $ hg debuglock
   lock:  (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re)
   wlock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re)