mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
t7300: fix clean up on Windows
On Windows, you cannot remove files that are in use, not even with 'rm -rf'. So we need to run 'exec <foo/bar' inside a subshell lest removing the whole test repository fail. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
parent
1f553918a8
commit
e2c2407683
|
@ -373,9 +373,9 @@ test_expect_success 'removal failure' '
|
||||||
|
|
||||||
mkdir foo &&
|
mkdir foo &&
|
||||||
touch foo/bar &&
|
touch foo/bar &&
|
||||||
exec <foo/bar &&
|
(exec <foo/bar &&
|
||||||
chmod 0 foo &&
|
chmod 0 foo &&
|
||||||
test_must_fail git clean -f -d
|
test_must_fail git clean -f -d)
|
||||||
|
|
||||||
'
|
'
|
||||||
chmod 755 foo
|
chmod 755 foo
|
||||||
|
|
Loading…
Reference in a new issue