Re: [PATCH v6 01/11] t2501: add various tests for removing the current working directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 09 2021, Elijah Newren via GitGitGadget wrote:

> From: Elijah Newren <newren@xxxxxxxxx>
> [...]
> +test_expect_success 'git version continues working from a deleted dir' '
> +	mkdir tmp &&
> +	(
> +		cd tmp &&
> +		rm -rf ../tmp &&
> +		git version
> +	)
> +'

There's a (minor) regression here in v2.35.0 on AIX (as of 8a0d52dfd87
(t2501: add various tests for removing the current working directory,
2021-12-09)). The tooling on that OS will also refuse to remove the cwd:
    
    + mkdir tmp
    + cd tmp
    + rm -rf ../tmp
    rm: Cannot remove the current directory ../tmp.
    error: last command exited with $?=2
    not ok 21 - git version continues working from a deleted dir
    #

Just splitting that into a prereq that checks if the first two lines of
the sub-shell works should be a solution in this case, but I only had
time for this quick bug report :)



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux