Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ $(DRUNTIME): $(OBJS) $(SRCS)
UT_MODULES:=$(patsubst src/%.d,$(OBJDIR)/%,$(SRCS))
HAS_ADDITIONAL_TESTS:=$(shell test -d test && echo 1)
ifeq ($(HAS_ADDITIONAL_TESTS),1)
ADDITIONAL_TESTS:=test/init_fini test/exceptions
ADDITIONAL_TESTS:=test/init_fini test/exceptions test/coverage
ADDITIONAL_TESTS+=$(if $(SHARED),test/shared,)
endif

Expand Down
25 changes: 25 additions & 0 deletions src/core/runtime.d
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,37 @@ struct Runtime


private:

// NOTE: This field will only ever be set in a static ctor and should
// never occur within any but the main thread, so it is safe to
// make it __gshared.
__gshared ModuleUnitTester sm_moduleUnitTester = null;
}

/**
* Set source file path for coverage reports.
*
* Params:
* path = The new path name.
*/
extern (C) void dmd_coverSourcePath(string path);

/**
* Set output path for coverage reports.
*
* Params:
* path = The new path name.
*/
extern (C) void dmd_coverDestPath(string path);

/**
* Enable merging of coverage reports with existing data.
*
* Params:
* merge = enable/disable coverage merge mode
*/
extern (C) void dmd_coverSetMerge(bool flag);

///////////////////////////////////////////////////////////////////////////////
// Overridable Callbacks
///////////////////////////////////////////////////////////////////////////////
Expand Down
Loading