summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-11-09 08:56:54 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2015-11-09 14:30:44 +0100
commit057f699b401097ad7f48fe3760e81c6993619a4b (patch)
tree44772fa8653058c876777c5c0547d601a47e1a7f
parent691387507c256e49845d4ca2a7bd558a2b41e4bb (diff)
downloadsssd-057f699b401097ad7f48fe3760e81c6993619a4b.tar.gz
sssd-057f699b401097ad7f48fe3760e81c6993619a4b.tar.xz
sssd-057f699b401097ad7f48fe3760e81c6993619a4b.zip
CI: Workaroung for code coverage with old gcc
It's fixed in upstream gcc >= 4.6.0 Resolves: https://fedorahosted.org/sssd/ticket/2819 Reviewed-by: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
-rwxr-xr-xcontrib/ci/run12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/ci/run b/contrib/ci/run
index a65ad8dca..090751d84 100755
--- a/contrib/ci/run
+++ b/contrib/ci/run
@@ -257,9 +257,19 @@ function build_debug()
function build_coverage()
{
declare -r coverage_report_dir="ci-report-coverage"
+ declare extra_CFLAGS=""
declare test_dir
- export CFLAGS="$COVERAGE_CFLAGS"
+ if [[ "$DISTRO_BRANCH" == -redhat-redhatenterprise*-6.*- ||
+ "$DISTRO_BRANCH" == -redhat-centos-6.*- ]]; then
+ # enable optimisation to avoid bug in gcc < 4.6.0
+ # gcc commit 7959b7e646b493f48a2ea7228fbf1c43f84bedea
+ # git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162384
+ # 138bc75d-0d04-0410-961f-82ee72b054a4
+ extra_CFLAGS=" -O1"
+ fi
+
+ export CFLAGS="$COVERAGE_CFLAGS $extra_CFLAGS"
test_dir=`mktemp --directory /dev/shm/ci-test-dir.XXXXXXXX`
stage configure "$BASE_DIR/configure" \