Skip to content

Commit a25122e

Browse files
author
jantje
committed
Added a build to the openClose test as the build did not succeed
Also added - to the options as they should have been there as otherwise the build will fail
1 parent 398c4af commit a25122e

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

io.sloeber.tests/src/io/sloeber/core/RegressionTest.java

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.sloeber.core;
22

3-
import static org.junit.Assert.fail;
3+
import static org.junit.Assert.*;
44

55
import java.io.File;
66
import java.util.Arrays;
@@ -382,6 +382,14 @@ public void openAndClosePreservesSettings() throws Exception {
382382
fail("Opened project does not match closed project parameters.");
383383
}
384384

385+
// also do a build
386+
Shared.waitForAllJobsToFinish(); // for the indexer
387+
theTestProject.build(IncrementalProjectBuilder.FULL_BUILD, null);
388+
if (Shared.hasBuildErrors(theTestProject)) {
389+
fail("Failed to compile the project:" + projectName);
390+
}
391+
392+
385393
}
386394

387395
@Test
@@ -507,13 +515,13 @@ public void openAndCloseUsesSavedSettings() throws Exception {
507515
static CompileDescription getBunkersCompileDescription() {
508516
CompileDescription inCompileDescription = new CompileDescription();
509517

510-
inCompileDescription.set_All_CompileOptions("Deen=1");
511-
inCompileDescription.set_Archive_CompileOptions("Dtwee=2");
512-
inCompileDescription.set_Assembly_CompileOptions("Drie=3");
513-
inCompileDescription.set_C_andCPP_CompileOptions("Dvier=4");
514-
inCompileDescription.set_C_CompileOptions("Dvijf=5");
515-
inCompileDescription.set_Link_CompileOptions("Dzes=6");
516-
inCompileDescription.set_CPP_CompileOptions("Dzeven=7");
518+
inCompileDescription.set_All_CompileOptions("-Deen=1");
519+
inCompileDescription.set_Archive_CompileOptions("-Dtwee=2");
520+
inCompileDescription.set_Assembly_CompileOptions("-Drie=3");
521+
inCompileDescription.set_C_andCPP_CompileOptions("-Dvier=4");
522+
inCompileDescription.set_C_CompileOptions("-Dvijf=5");
523+
inCompileDescription.set_Link_CompileOptions("-Dzes=6");
524+
inCompileDescription.set_CPP_CompileOptions("-Dzeven=7");
517525
inCompileDescription.setAlternativeSizeCommand(true);
518526
inCompileDescription.setEnableParallelBuild(true);
519527
inCompileDescription.setWarningLevel(false);

0 commit comments

Comments
 (0)