From 000b49a99bbd6b581b515676d1031ed6bdcfb48a Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 27 Oct 2022 22:05:39 +0200 Subject: test: Disable flaky Windows profiling tests --- test/suites/profiling.bash | 3 +++ test/suites/profiling_gcc.bash | 10 +++++----- 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 -- cgit v1.2.1