Skip to content

Commit 1001a03

Browse files
committed
Deprecate deleteOnExit in switft2cpg and ExcludeTests.
1 parent 950a865 commit 1001a03

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/io/ExcludeTests.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ class ExcludeTests extends AnyWordSpec with Matchers with TableDrivenPropertyChe
4848
override def afterAll(): Unit = FileUtil.delete(projectUnderTest, swallowIoExceptions = true)
4949

5050
private def testWithArguments(exclude: Seq[String], excludeRegex: String, expectedFiles: Set[String]): Unit = {
51-
val cpgOutFile = FileUtil.newTemporaryFile("c2cpg.bin")
52-
FileUtil.deleteOnExit(cpgOutFile)
53-
5451
val config = Config()
5552
.withInputPath(projectUnderTest.toString)
56-
.withOutputPath(cpgOutFile.toString)
5753
.withIgnoredFiles(exclude)
5854
.withIgnoredFilesRegex(excludeRegex)
5955
val c2cpg = new C2Cpg()

joern-cli/frontends/swiftsrc2cpg/src/test/scala/io/joern/swiftsrc2cpg/testfixtures/SwiftSrc2CpgFrontend.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ trait SwiftSrc2CpgFrontend extends LanguageFrontend {
1010
override type ConfigType = Config
1111

1212
def execute(sourceCodePath: java.io.File): Cpg = {
13-
val cpgOutFile = FileUtil.newTemporaryFile(suffix = "cpg.bin")
14-
FileUtil.deleteOnExit(cpgOutFile)
15-
1613
val config = getConfig()
1714
.fold(Config())(identity)
1815
.withInputPath(sourceCodePath.getAbsolutePath)
19-
.withOutputPath(cpgOutFile.toString)
2016

2117
val tmp = new SwiftSrc2Cpg().createCpg(config).get
2218
new PostFrontendValidator(tmp, false).run()

0 commit comments

Comments
 (0)