Swift: fix wrong test names

This commit is contained in:
Paolo Tranquilli
2022-11-04 10:06:57 +01:00
parent 4cfe11c319
commit 231f2238c1
7 changed files with 14 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
from swift.tools.test.qltest.utils import *
set_dummy_extractor("""
if [[ " $@ " =~ a.swift ]]; then exit 42; fi
if [[ " $@ " =~ b.swift ]]; then exit 1; fi
""")
run_qltest()
assert_extractor_executed_with(
"a.swift",
"b.swift",
)

View File

@@ -1,9 +0,0 @@
from swift.tools.test.qltest.utils import *
set_dummy_extractor()
run_qltest(expected_returncode=1)
assert_extractor_executed_with(
"a.swift",
"b.swift",
"c.swift",
)

View File

@@ -1 +0,0 @@
//codeql-extractor-expected-status: 42

View File

@@ -1,11 +1,9 @@
from swift.tools.test.qltest.utils import *
set_dummy_extractor("""
if [[ " $@ " =~ a.swift ]]; then exit 42; fi
if [[ " $@ " =~ b.swift ]]; then exit 1; fi
""")
run_qltest()
set_dummy_extractor()
run_qltest(expected_returncode=1)
assert_extractor_executed_with(
"a.swift",
"b.swift",
"c.swift",
)