From 9e128bfeb9a5050231a41e357729645c5a99fc2e Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Sat, 10 Oct 2020 20:00:19 +0200 Subject: [PATCH] Remove -lgcov from profiling tests (#679) This fixes an issue when running the test suite with a Clang installation without a GCC installation since libgcov then isn't found. --- test/suites/profiling.bash | 2 +- test/suites/profiling_gcc.bash | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/suites/profiling.bash b/test/suites/profiling.bash index babc47888..3942313e5 100644 --- a/test/suites/profiling.bash +++ b/test/suites/profiling.bash @@ -74,7 +74,7 @@ SUITE_profiling() { expect_stat 'cache hit (direct)' 0 expect_stat 'cache miss' 1 - $COMPILER -fprofile-generate=data test.o -lgcov -o test + $COMPILER -fprofile-generate test.o -o test ./test merge_profiling_data data diff --git a/test/suites/profiling_gcc.bash b/test/suites/profiling_gcc.bash index 814212289..e67b6fa26 100644 --- a/test/suites/profiling_gcc.bash +++ b/test/suites/profiling_gcc.bash @@ -17,7 +17,7 @@ SUITE_profiling_gcc() { expect_stat 'cache hit (direct)' 0 expect_stat 'cache miss' 1 - $COMPILER -fprofile-generate test.o -lgcov -o test + $COMPILER -fprofile-generate test.o -o test ./test @@ -44,7 +44,7 @@ SUITE_profiling_gcc() { expect_stat 'cache hit (direct)' 0 expect_stat 'cache miss' 1 - $COMPILER -fprofile-dir=data -fprofile-generate test.o -lgcov -o test + $COMPILER -fprofile-generate test.o -o test ./test @@ -71,7 +71,7 @@ SUITE_profiling_gcc() { expect_stat 'cache hit (direct)' 0 expect_stat 'cache miss' 1 - $COMPILER -fprofile-generate -fprofile-dir=data test.o -lgcov -o test + $COMPILER -fprofile-generate test.o -o test ./test @@ -98,7 +98,7 @@ SUITE_profiling_gcc() { expect_stat 'cache hit (direct)' 0 expect_stat 'cache miss' 1 - $COMPILER -fprofile-dir=data2 -fprofile-generate=data test.o -lgcov -o test + $COMPILER -fprofile-generate test.o -o test ./test -- 2.47.2