diff --git a/circleci.sh b/circleci.sh index f9c40461b0c0..39791269e391 100755 --- a/circleci.sh +++ b/circleci.sh @@ -115,6 +115,10 @@ coverage() make -j$N -C src -f posix.mak MODEL=$MODEL HOST_DMD=../_${build_path}/host_dmd ENABLE_COVERAGE=1 make -j$N -C test MODEL=$MODEL ARGS="-O -inline -release" DMD_TEST_COVERAGE=1 + + # Remove coverage information from lines with non-deterministic coverage. + # These lines are annotated with a comment containing "nocoverage". + sed -i 's/^ *[0-9]*\(|.*nocoverage.*\)$/ \1/' ./src/*.lst } codecov() diff --git a/src/ddmd/dtemplate.d b/src/ddmd/dtemplate.d index 0f07291f16a3..79aefde0587b 100644 --- a/src/ddmd/dtemplate.d +++ b/src/ddmd/dtemplate.d @@ -6963,7 +6963,7 @@ extern (C++) class TemplateInstance : ScopeDsymbol if (enclosing != ti.enclosing) { //printf("test2 enclosing %s ti.enclosing %s\n", enclosing ? enclosing.toChars() : "", ti.enclosing ? ti.enclosing.toChars() : ""); - goto Lnotequals; + goto Lnotequals; // nocoverage } //printf("parent = %s, ti.parent = %s\n", parent.toPrettyChars(), ti.parent.toPrettyChars());