Skip to content

Commit

Permalink
Try to pass Rust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jun 5, 2023
1 parent d8fe614 commit 3ecf820
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/testFixtures/java/org/lflang/tests/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ private void execute(LFTest test) throws TestError {

stderr.start();
stdout.start();

if (!p.waitFor(MAX_EXECUTION_TIME_SECONDS, TimeUnit.SECONDS)) {
stdout.interrupt();
stderr.interrupt();
var timeout = !p.waitFor(MAX_EXECUTION_TIME_SECONDS, TimeUnit.SECONDS);
stdout.interrupt();
stderr.interrupt();
if (timeout) {
p.destroy();
throw new TestError(Result.TEST_TIMEOUT);
} else {
Expand Down

0 comments on commit 3ecf820

Please sign in to comment.