Skip to content

Commit 73c5007

Browse files
Reset counter used by get_fresh_aux_symbol in unit tests
Otherwise symbols won't have reproducible names
1 parent fdc9415 commit 73c5007

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unit/java_bytecode/java_string_library_preprocess/convert_exprt_to_string_exprt.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <testing-utils/catch.hpp>
1111
#include <util/c_types.h>
12-
#include <util/expr.h>
12+
#include <util/fresh_symbol.h>
1313
#include <util/std_code.h>
1414
#include <java_bytecode/java_string_library_preprocess.h>
1515
#include <langapi/language_util.h>
@@ -32,6 +32,8 @@ TEST_CASE("Convert exprt to string exprt")
3232
{
3333
GIVEN("A location, a string expression, and a symbol table")
3434
{
35+
reset_temporary_counter();
36+
3537
source_locationt loc;
3638
symbol_tablet symbol_table;
3739
namespacet ns(symbol_table);

0 commit comments

Comments
 (0)