diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-10-27 22:23:50 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-10-28 20:07:34 +0200 |
commit | 79cb07c0b0f0992092ebef1b3c50b7ac68f6cad2 (patch) | |
tree | 19599374af6fb0db066006a8738c1eebaf14875e /test/suites | |
parent | 000b49a99bbd6b581b515676d1031ed6bdcfb48a (diff) | |
download | ccache-79cb07c0b0f0992092ebef1b3c50b7ac68f6cad2.tar.gz |
fix: Use configured umask for command line operations like --zero-stats
Closes #1197.
Diffstat (limited to 'test/suites')
-rw-r--r-- | test/suites/base.bash | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/suites/base.bash b/test/suites/base.bash index 67a5d42a..0ce9ce6e 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1069,6 +1069,24 @@ if ! $HOST_OS_WINDOWS; then export CCACHE_UMASK=002 export CCACHE_TEMPDIR=$CCACHE_DIR/tmp + $CCACHE -C + expect_perm "$CCACHE_DIR" drwxrwxr-x + expect_perm "$CCACHE_DIR/0" drwxrwxr-x + expect_perm "$CCACHE_DIR/0/stats" -rw-rw-r-- + rm -rf $CCACHE_DIR + + $CCACHE -c + expect_perm "$CCACHE_DIR" drwxrwxr-x + expect_perm "$CCACHE_DIR/0" drwxrwxr-x + expect_perm "$CCACHE_DIR/0/stats" -rw-rw-r-- + rm -rf $CCACHE_DIR + + $CCACHE -z + expect_perm "$CCACHE_DIR" drwxrwxr-x + expect_perm "$CCACHE_DIR/0" drwxrwxr-x + expect_perm "$CCACHE_DIR/0/stats" -rw-rw-r-- + rm -rf $CCACHE_DIR + cat <<EOF >test.c int main() {} EOF |