@@ -1076,7 +1076,11 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1076
1076
new CompilationTest (target)
1077
1077
}
1078
1078
1079
- /** Compiles a single file from the string path `f` using the supplied flags */
1079
+ /** Compiles a single file from the string path `f` using the supplied flags
1080
+ *
1081
+ * Tests in the first part of the tuple must be executed before the second.
1082
+ * Both testsRequires explicit delete().
1083
+ */
1080
1084
def compileTasty (f : String , flags : TestFlags )(implicit testGroup : TestGroup ): (CompilationTest , CompilationTest ) = {
1081
1085
val sourceFile = new JFile (f)
1082
1086
val parent = sourceFile.getParentFile
@@ -1097,7 +1101,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1097
1101
tastySource,
1098
1102
fromTasty = true
1099
1103
)
1100
- (compileFile(f, flags), new CompilationTest (target))
1104
+ (compileFile(f, flags).keepOutput , new CompilationTest (target).keepOutput )
1101
1105
}
1102
1106
1103
1107
/** Compiles a directory `f` using the supplied `flags`. This method does
@@ -1197,6 +1201,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1197
1201
* with file extension `.check`)
1198
1202
* - Directories can have an associated check-file, where the check file has
1199
1203
* the same name as the directory (with the file extension `.check`)
1204
+ *
1205
+ * Tests in the first part of the tuple must be executed before the second.
1206
+ * Both testsRequires explicit delete().
1200
1207
*/
1201
1208
def compileTastyInDir (f : String , flags0 : TestFlags )(implicit testGroup : TestGroup ): (CompilationTest , CompilationTest ) = {
1202
1209
val outDir = defaultOutputDir + testGroup + " /"
@@ -1215,7 +1222,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1215
1222
1216
1223
// Create a CompilationTest and let the user decide whether to execute a pos or a neg test
1217
1224
val generateClassFiles = compileFilesInDir(f, flags0)
1218
- (generateClassFiles, new CompilationTest (targets))
1225
+ (generateClassFiles.keepOutput , new CompilationTest (targets).keepOutput )
1219
1226
}
1220
1227
1221
1228
0 commit comments