summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-10-27 22:05:39 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-10-28 20:07:34 +0200
commit000b49a99bbd6b581b515676d1031ed6bdcfb48a (patch)
treea5428f2a99fbaf23d08422a7fe465d789a388362
parentc33609aa7df381451eb9bdf203f185972acdc21b (diff)
downloadccache-000b49a99bbd6b581b515676d1031ed6bdcfb48a.tar.gz
test: Disable flaky Windows profiling tests
-rw-r--r--test/suites/profiling.bash3
-rw-r--r--test/suites/profiling_gcc.bash10
2 files changed, 8 insertions, 5 deletions
diff --git a/test/suites/profiling.bash b/test/suites/profiling.bash
index 16dc7e0b..3bd45bcd 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 298dc162..6552f00e 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