Skip to content

Commit c46dd31

Browse files
committed
Cleanup
1 parent 311e7dd commit c46dd31

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/ParallelTypeCheckingTests/Tests/CompilationFromArgsTests.fs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ let setupParsed config =
4646

4747
[<TestCaseSource(nameof(configs))>]
4848
let TestCompilerFromArgs (config : Args) : unit =
49-
let args = setupParsed config
50-
let exit = CommandLineMain.main args
51-
Assert.That(exit, Is.Zero)
49+
let oldWorkDir = Environment.CurrentDirectory
50+
try
51+
let args = setupParsed config
52+
let exit = CommandLineMain.main args
53+
Assert.That(exit, Is.Zero)
54+
finally
55+
Environment.CurrentDirectory <- oldWorkDir

0 commit comments

Comments
 (0)