1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/ccache/skip-fs-dependent-test.patch

27 lines
899 B
Diff
Raw Normal View History

2018-02-28 07:07:54 +00:00
--- a/test/suites/cleanup.bash
+++ b/test/suites/cleanup.bash
@@ -94,23 +94,6 @@
2018-01-27 10:08:15 +00:00
2017-07-01 18:42:19 +01:00
$CCACHE -F 0 -M 256K >/dev/null
2018-01-27 10:08:15 +00:00
CCACHE_LOGFILE=/tmp/foo $CCACHE -c >/dev/null
2017-07-01 18:42:19 +01:00
- expect_file_count 3 '*.o' $CCACHE_DIR
- expect_file_count 3 '*.d' $CCACHE_DIR
- expect_file_count 3 '*.stderr' $CCACHE_DIR
- expect_stat 'files in cache' 9
- expect_stat 'cleanups performed' 1
- for i in 3 4 5; do
- file=$CCACHE_DIR/a/result$i-4017.o
- if [ ! -f $file ]; then
- test_failed "File $file removed when it shouldn't"
- fi
- done
- for i in 0 1 2 6 7 8 9; do
- file=$CCACHE_DIR/a/result$i-4017.o
- if [ -f $file ]; then
- test_failed "File $file not removed when it should"
- fi
- done
2018-01-27 10:08:15 +00:00
2017-07-01 18:42:19 +01:00
# -------------------------------------------------------------------------
2018-01-27 10:08:15 +00:00
TEST "Automatic cache cleanup, limit_multiple 0.9"