From: Joel Rosdahl Date: Thu, 27 Oct 2022 20:05:39 +0000 (+0200) Subject: test: Disable flaky Windows profiling tests X-Git-Tag: v4.7.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000b49a99bbd6b581b515676d1031ed6bdcfb48a;p=thirdparty%2Fccache.git test: Disable flaky Windows profiling tests --- diff --git a/test/suites/profiling.bash b/test/suites/profiling.bash index 16dc7e0b0..3bd45bcd0 100644 --- a/test/suites/profiling.bash +++ b/test/suites/profiling.bash @@ -53,6 +53,7 @@ SUITE_profiling() { expect_stat no_input_file 1 # ------------------------------------------------------------------------- +if $RUN_WIN_XFAIL; then TEST "-fprofile-use" $CCACHE_COMPILE -fprofile-generate -c test.c @@ -78,6 +79,8 @@ SUITE_profiling() { $CCACHE_COMPILE -fprofile-use -c test.c expect_stat direct_cache_hit 1 expect_stat cache_miss 3 +fi + # ------------------------------------------------------------------------- if $RUN_WIN_XFAIL; then TEST "-fprofile-use=dir" diff --git a/test/suites/profiling_gcc.bash b/test/suites/profiling_gcc.bash index 298dc1625..6552f00eb 100644 --- a/test/suites/profiling_gcc.bash +++ b/test/suites/profiling_gcc.bash @@ -2,6 +2,9 @@ SUITE_profiling_gcc_PROBE() { if ! $COMPILER_TYPE_GCC; then echo "compiler is not GCC" fi + if ! $RUN_WIN_XFAIL; then + echo "this suite does not work on Windows" + fi } SUITE_profiling_gcc_SETUP() { @@ -36,7 +39,6 @@ SUITE_profiling_gcc() { expect_stat cache_miss 3 # ------------------------------------------------------------------------- -if $RUN_WIN_XFAIL; then TEST "-fprofile-dir=dir + -fprofile-use" mkdir data @@ -62,9 +64,8 @@ if $RUN_WIN_XFAIL; then $CCACHE_COMPILE -fprofile-dir=data -fprofile-use -c test.c expect_stat direct_cache_hit 1 expect_stat cache_miss 3 -fi + # ------------------------------------------------------------------------- -if $RUN_WIN_XFAIL; then TEST "-fprofile-use + -fprofile-dir=dir" mkdir data @@ -90,9 +91,8 @@ if $RUN_WIN_XFAIL; then $CCACHE_COMPILE -fprofile-use -fprofile-dir=data -c test.c expect_stat direct_cache_hit 1 expect_stat cache_miss 3 -fi + # ------------------------------------------------------------------------- -if $RUN_WIN_XFAIL; then TEST "-fprofile-dir=path1 + -fprofile-use=path2" mkdir data