Skip to content

Commit 814cfcc

Browse files
author
Matthias Güdemann
committed
Adapt failing unit test for value set analysis
The test was failing on two Travis goals, due to the config object being persistent between different tests in "unit". The link order made another test set `config.main` to non-empty which made this test fail due to that function not being found.
1 parent 3ff90bc commit 814cfcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unit/pointer-analysis/custom_value_set_analysis.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ SCENARIO("test_value_set_analysis",
168168
{
169169
GIVEN("Normal and custom value-set analysis of CustomVSATest::test")
170170
{
171+
config.set_arch("none");
172+
config.main = "";
171173
null_message_handlert null_output;
172174
cmdlinet command_line;
173175

174176
// This classpath is the default, but the config object
175177
// is global and previous unit tests may have altered it
176-
command_line.set("java-cp-include-files", ".");
178+
command_line.set("java-cp-include-files", "CustomVSATest.class");
177179
config.java.classpath={"."};
178180
command_line.args.push_back("pointer-analysis/CustomVSATest.jar");
179181

0 commit comments

Comments
 (0)