dmd/druntime/test/coverage/src-merge_override.lst_1.exp
Andrei Horodniceanu 2f19831b10
druntime/test/coverage: Fix race condition when modifying source files
This has been hit by ldc because it runs multiple druntime testsuites
in parallel (one for the debug build and one for the release
build). Because of this, modifying the source file directly can lead
to problems which requires that this test be special cased in the ldc
cmake file.

Simply copying the source file to the build directory is enough to get
around this.

A make dependency on the expected output files has also been added.

Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
2024-09-19 08:06:31 +03:00

10 lines
280 B
Text

|import core.runtime;
|
|void main(string[] args)
|{
1| dmd_coverDestPath(args[1]);
1| dmd_coverSourcePath(args[2]);
| enum CHANGE_VAR = 0;
1| dmd_coverSetMerge(true);
|}
src/merge_override.d is 100% covered