]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Disable flaky Windows profiling tests
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 27 Oct 2022 20:05:39 +0000 (22:05 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 28 Oct 2022 18:07:34 +0000 (20:07 +0200)
test/suites/profiling.bash
test/suites/profiling_gcc.bash

index 16dc7e0b083fd2308123cd1edd56134cbe4c89e0..3bd45bcd0d58fd51927f0dded4d09325a90117f3 100644 (file)
@@ -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"
index 298dc16258e6f1f6375e4e5d697a58c417fc5a3a..6552f00ebde5cb957ea7b4e6730ecfcb944d8644 100644 (file)
@@ -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