File tree 4 files changed +43
-9
lines changed
java_bytecode/java_bytecode_parser
4 files changed +43
-9
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include < java_bytecode/java_bytecode_parse_tree.h>
20
20
#include < java_bytecode/java_types.h>
21
+ #include < testing-utils/run_test_with_compilers.h>
21
22
22
23
typedef java_bytecode_parse_treet::classt::lambda_method_handlet
23
24
lambda_method_handlet;
24
25
25
- void run_test_with_compilers (
26
- const std::function<void (std::string)> &test_with_compiler)
27
- {
28
- test_with_compiler (" openjdk_8" );
29
- test_with_compiler (" eclipse" );
30
- test_with_compiler (" oracle_8" );
31
- test_with_compiler (" oracle_9" );
32
- }
33
-
34
26
SCENARIO (
35
27
" lambda_method_handle_map with static lambdas" ,
36
28
" [core][java_bytecode][java_bytecode_parse_lambda_method_handle]" )
Original file line number Diff line number Diff line change 4
4
load_java_class.cpp \
5
5
require_expr.cpp \
6
6
require_goto_statements.cpp \
7
+ require_parse_tree.cpp \
8
+ require_symbol.cpp \
7
9
require_type.cpp \
10
+ run_test_with_compilers.cpp \
8
11
# Empty last line (please keep above list sorted!)
9
12
10
13
INCLUDES = -I .. -I . -I ../../src
Original file line number Diff line number Diff line change
1
+ /* ******************************************************************\
2
+
3
+ Module: Unit test utilities
4
+
5
+ Author: Diffblue Ltd.
6
+
7
+ \*******************************************************************/
8
+
9
+ #include " run_test_with_compilers.h"
10
+
11
+ void run_test_with_compilers (
12
+ const std::function<void (const std::string &)> &test_with_compiler)
13
+ {
14
+ test_with_compiler (std::string (" openjdk_8" ));
15
+ test_with_compiler (std::string (" eclipse" ));
16
+ test_with_compiler (std::string (" oracle_8" ));
17
+ test_with_compiler (std::string (" oracle_9" ));
18
+ }
Original file line number Diff line number Diff line change
1
+ /* ******************************************************************\
2
+
3
+ Module: Unit test utilities
4
+
5
+ Author: Diffblue Ltd.
6
+
7
+ \*******************************************************************/
8
+
9
+ // / \file
10
+ // / Utility for running a test with different compilers.
11
+
12
+ #ifndef CPROVER_TESTING_UTILS_RUN_TEST_WITH_COMPILERS_H
13
+ #define CPROVER_TESTING_UTILS_RUN_TEST_WITH_COMPILERS_H
14
+
15
+ #include < functional>
16
+ #include < string>
17
+
18
+ void run_test_with_compilers (
19
+ const std::function<void (const std::string &)> &test_with_compiler);
20
+
21
+ #endif // CPROVER_TESTING_UTILS_RUN_TEST_WITH_COMPILERS_H
You can’t perform that action at this time.
0 commit comments