Skip to content

Commit 9ea7414

Browse files
committed
Set up config in unit tests
1 parent 0e2b13f commit 9ea7414

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unit/util/simplify_expr.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <util/arith_tools.h>
1212
#include <util/c_types.h>
13+
#include <util/config.h>
1314
#include <util/namespace.h>
1415
#include <util/pointer_predicates.h>
1516
#include <util/simplify_expr.h>
@@ -18,6 +19,8 @@
1819

1920
TEST_CASE("Simplify pointer_offset(address of array index)")
2021
{
22+
config.set_arch("none");
23+
2124
symbol_tablet symbol_table;
2225
namespacet ns(symbol_table);
2326

@@ -38,6 +41,8 @@ TEST_CASE("Simplify pointer_offset(address of array index)")
3841

3942
TEST_CASE("Simplify const pointer offset")
4043
{
44+
config.set_arch("none");
45+
4146
symbol_tablet symbol_table;
4247
namespacet ns(symbol_table);
4348

0 commit comments

Comments
 (0)