From: Joel Rosdahl Date: Tue, 9 Sep 2025 16:34:07 +0000 (+0200) Subject: chore: Touch up basedir.bash X-Git-Tag: v4.12~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4608f018e7a6ae542370150375056925992cb86b;p=thirdparty%2Fccache.git chore: Touch up basedir.bash --- diff --git a/test/suites/basedir.bash b/test/suites/basedir.bash index b8f964d7..9f237422 100644 --- a/test/suites/basedir.bash +++ b/test/suites/basedir.bash @@ -275,7 +275,7 @@ EOF # ------------------------------------------------------------------------- if $COMPILER_TYPE_CLANG; then TEST "-fbuild-session-file/absolute/path" - + build_session_file_path="$(pwd)/dir3/build-session-file.bin" cd dir1 CCACHE_BASEDIR="$(pwd)" $CCACHE_COMPILE -I"$(pwd)/include" -fbuild-session-file="$build_session_file_path" -c src/test.c @@ -318,6 +318,7 @@ EOF expect_content_pattern test.d "$(pwd)/foo.o:*" cd .. done + # ------------------------------------------------------------------------- # When BASEDIR is set to /, check that -MF, -MQ and -MT arguments with # absolute paths are rewritten to relative and that the dependency file @@ -360,6 +361,7 @@ EOF expect_stat cache_miss 1 cd .. done + # ------------------------------------------------------------------------- if $RUN_WIN_XFAIL; then TEST "Absolute paths in stderr" @@ -404,6 +406,7 @@ EOF expect_equal_content reference.stderr ccache.stderr fi fi + # ------------------------------------------------------------------------- TEST "Relative PWD"