|
1 | 1 | package io.sloeber.core;
|
2 | 2 |
|
3 |
| -import static org.junit.Assert.fail; |
| 3 | +import static org.junit.Assert.*; |
4 | 4 |
|
5 | 5 | import java.io.File;
|
6 | 6 | import java.util.Arrays;
|
@@ -382,6 +382,14 @@ public void openAndClosePreservesSettings() throws Exception {
|
382 | 382 | fail("Opened project does not match closed project parameters.");
|
383 | 383 | }
|
384 | 384 |
|
| 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 | + |
385 | 393 | }
|
386 | 394 |
|
387 | 395 | @Test
|
@@ -507,13 +515,13 @@ public void openAndCloseUsesSavedSettings() throws Exception {
|
507 | 515 | static CompileDescription getBunkersCompileDescription() {
|
508 | 516 | CompileDescription inCompileDescription = new CompileDescription();
|
509 | 517 |
|
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"); |
517 | 525 | inCompileDescription.setAlternativeSizeCommand(true);
|
518 | 526 | inCompileDescription.setEnableParallelBuild(true);
|
519 | 527 | inCompileDescription.setWarningLevel(false);
|
|
0 commit comments