File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/test/java/kaiju/ghihorn Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 56
56
import kaiju .tools .ghihorn .answer .graph .GhiHornAnswerGraphVertex ;
57
57
import kaiju .tools .ghihorn .api .ApiEntry ;
58
58
import kaiju .tools .ghihorn .cmd .GhiHornCommand ;
59
+ import kaiju .tools .ghihorn .decompiler .DecompilerFactory ;
59
60
import kaiju .tools .ghihorn .hornifer .GhiHornifier ;
60
61
import kaiju .tools .ghihorn .hornifer .block .HornBlock ;
61
62
import kaiju .tools .ghihorn .hornifer .horn .GhiHornAnswer ;
@@ -2686,6 +2687,22 @@ public void testSigArgsAndRetn() {
2686
2687
assertTrue (apiFunc1 .getApiRetnValue ().equals ("HR1" ));
2687
2688
}
2688
2689
2690
+ // This test is here because the ghihorn tests don't actually test the
2691
+ // DecompilerFactory, which is used in the GUI.
2692
+ @ Test
2693
+ public void testDecompilerFactory () {
2694
+ try {
2695
+ Program program = testEnv .importTestProgram ("msvc32b-fileopen-single.exe" );
2696
+
2697
+ var tool = testEnv .getEnv ().getTool ();
2698
+
2699
+ var decompiler = new DecompilerFactory (program , tool ).createDecompiler ();
2700
+ } catch (Exception e ) {
2701
+ e .printStackTrace ();
2702
+ fail ("Failed to create decompiler: " + e .getMessage ());
2703
+ }
2704
+ }
2705
+
2689
2706
@ Test
2690
2707
public void testApiAnalyzerSingleFunction () {
2691
2708
You can’t perform that action at this time.
0 commit comments