Skip to content

Commit efa63f4

Browse files
committed
tests: update indirect call test modes after merge
1 parent e407854 commit efa63f4

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/test/scala/IndirectCallTests.scala

+10-11
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ import java.io.{BufferedWriter, File, FileWriter}
2525
class IndirectCallTests extends AnyFunSuite, BASILTest, TestCustomisation {
2626

2727
override def customiseTestsByName(name: String) = name match {
28-
case "functionpointer/clang:BAP" | "functionpointer/clang_O2:BAP" | "functionpointer/clang_O2:GTIRB" |
29-
"functionpointer/clang_pic:BAP" | "functionpointer/gcc:BAP" | "functionpointer/gcc_O2:BAP" |
30-
"functionpointer/gcc_pic:BAP" | "indirect_call/clang:BAP" | "indirect_call/clang_pic:BAP" |
31-
"indirect_call/gcc:BAP" | "indirect_call/gcc_pic:BAP" | "indirect_call_outparam/clang:BAP" |
32-
"indirect_call_outparam/clang:GTIRB" | "indirect_call_outparam/gcc:BAP" | "indirect_call_outparam/gcc:GTIRB" |
33-
"jumptable/clang:BAP" | "jumptable/clang:GTIRB" | "jumptable/gcc:BAP" | "jumptable/gcc:GTIRB" |
34-
"jumptable2/clang:BAP" | "jumptable2/clang_O2:BAP" | "jumptable2/clang_pic:BAP" | "jumptable2/gcc:BAP" |
35-
"jumptable2/gcc_O2:BAP" | "jumptable2/gcc_pic:BAP" | "jumptable3/clang_O2:GTIRB" =>
36-
Mode.TempFailure("appear to be failing after simplification pass")
37-
case "jumptable3/clang:GTIRB" | "switch2/clang:GTIRB" =>
38-
Mode.TempFailure("Unable to evaluate expr: bitvector size mismatch")
28+
case "indirect_call_outparam/clang:BAP" | "indirect_call_outparam/clang:GTIRB" | "indirect_call_outparam/gcc:BAP" |
29+
"indirect_call_outparam/gcc:GTIRB" | "jumptable/clang:BAP" | "jumptable/clang:GTIRB" =>
30+
Mode.TempFailure("indirect call not resolved to correct target")
31+
32+
case "jumptable3/clang:GTIRB" | "jumptable3/clang_O2:GTIRB" | "switch2/clang:GTIRB" =>
33+
Mode.TempFailure("indirect call not resolved to goto")
34+
35+
case "jumptable/gcc:BAP" | "jumptable/gcc:GTIRB" =>
36+
Mode.TempFailure("Expected verification success, but got failure")
37+
3938
case _ => Mode.Normal
4039
}
4140

0 commit comments

Comments
 (0)