tests: move some lines inside #if windows-#else block test-removeemptydirs.t stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 14 Nov 2022 19:38:57 +0400
branchstable
changeset 49593 e11760daee12
parent 49592 12efb17faee2
child 49594 88a8de821b5e
tests: move some lines inside #if windows-#else block test-removeemptydirs.t This is done to make it's clear that windows is not affected by this test case, IOW windows and non-windows platforms are now tested separately, because their results are very different.
tests/test-removeemptydirs.t
--- a/tests/test-removeemptydirs.t	Mon Jun 20 12:53:08 2022 +0400
+++ b/tests/test-removeemptydirs.t	Mon Nov 14 19:38:57 2022 +0400
@@ -144,16 +144,19 @@
 #if windows
   $ "$PYTHON" "$TESTTMP/pwd.py"
   $TESTTMP/hghistedit/somedir
+  $ ls -A $TESTTMP/hghistedit/somedir
+  foo
+  $ ls -A
+  foo
 #else
   $ echo ${PWD} # no-pwd-check
   $TESTTMP/hghistedit/somedir
   $ "$PYTHON" "$TESTTMP/pwd.py"
   <directory is no longer accessible>
-#endif
   $ ls -A $TESTTMP/hghistedit/somedir
   foo
   $ ls -A
-  foo (windows !)
+#endif
 
 Get out of the doomed directory