Mercurial > hg-stable
comparison tests/test-removeemptydirs.t @ 49571:e11760daee12 stable
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 14 Nov 2022 19:38:57 +0400 |
parents | 12efb17faee2 |
children | 88a8de821b5e |
comparison
equal
deleted
inserted
replaced
49570:12efb17faee2 | 49571:e11760daee12 |
---|---|
142 r2 | 142 r2 |
143 somedir | 143 somedir |
144 #if windows | 144 #if windows |
145 $ "$PYTHON" "$TESTTMP/pwd.py" | 145 $ "$PYTHON" "$TESTTMP/pwd.py" |
146 $TESTTMP/hghistedit/somedir | 146 $TESTTMP/hghistedit/somedir |
147 $ ls -A $TESTTMP/hghistedit/somedir | |
148 foo | |
149 $ ls -A | |
150 foo | |
147 #else | 151 #else |
148 $ echo ${PWD} # no-pwd-check | 152 $ echo ${PWD} # no-pwd-check |
149 $TESTTMP/hghistedit/somedir | 153 $TESTTMP/hghistedit/somedir |
150 $ "$PYTHON" "$TESTTMP/pwd.py" | 154 $ "$PYTHON" "$TESTTMP/pwd.py" |
151 <directory is no longer accessible> | 155 <directory is no longer accessible> |
152 #endif | |
153 $ ls -A $TESTTMP/hghistedit/somedir | 156 $ ls -A $TESTTMP/hghistedit/somedir |
154 foo | 157 foo |
155 $ ls -A | 158 $ ls -A |
156 foo (windows !) | 159 #endif |
157 | 160 |
158 Get out of the doomed directory | 161 Get out of the doomed directory |
159 | 162 |
160 $ cd $TESTTMP/hghistedit | 163 $ cd $TESTTMP/hghistedit |
161 chdir: error retrieving current directory: getcwd: cannot access parent directories: $ENOENT$ (?) | 164 chdir: error retrieving current directory: getcwd: cannot access parent directories: $ENOENT$ (?) |