Skip to content

Commit

Permalink
Merge pull request #5579 from MartinNowak/fix_coverage
Browse files Browse the repository at this point in the history
fix test coverage
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
  • Loading branch information
dlang-bot committed Jul 8, 2017
2 parents 4cfe0f3 + 87587ce commit 5f8802f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 6 additions & 5 deletions circleci.sh
Expand Up @@ -110,12 +110,13 @@ coverage()
# remove all existing coverage files (just in case)
rm -rf $(find -name '*.lst')
# currently using the test_runner yields wrong code coverage results
# see https://github.com/dlang/phobos/pull/4719 for details
ENABLE_COVERAGE="1" make -f posix.mak MODEL=$MODEL unittest-debug
# Coverage information of the test runner can be missing for some template instatiations.
# https://issues.dlang.org/show_bug.cgi?id=16397
# ENABLE_COVERAGE="1" make -j$N -f posix.mak MODEL=$MODEL unittest-debug
# instead we run all tests individually
make -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test")
# So instead we run all tests individually (hoping that that doesn't break any tests).
# -cov is enabled by the %.test target itself
make -j$N -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test/")
# Remove coverage information from lines with non-deterministic coverage.
# These lines are annotated with a comment containing "nocoverage".
Expand Down
2 changes: 0 additions & 2 deletions std/c/linux/pthread.d
Expand Up @@ -14,6 +14,4 @@ deprecated("Import core.sys.posix.pthread or the appropriate core.sys.posix.* mo
module std.c.linux.pthread;

version (linux):
import std.c.linux.linux;

public import core.sys.posix.pthread;

0 comments on commit 5f8802f

Please sign in to comment.