Skip to content

Commit

Permalink
compiler/test/unit/semantic/imports.d: call deinitializeDMD
Browse files Browse the repository at this point in the history
There is the unit/deinitialization.d test that checks that variables
are empty before calling `initDMD`. If this test happens to be run
right before that one then the latter will fail.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Jun 8, 2024
1 parent 05c8980 commit 9064810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/test/unit/semantic/imports.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import support;
unittest
{
initDMD();
scope(exit) deinitializeDMD();
defaultImportPaths.each!addImport;

auto t = parseModule!ASTCodegen("test.d", q{
Expand Down

0 comments on commit 9064810

Please sign in to comment.