UAEFI crash if set to daihatsu 4cyl trigger #6079

new HW CI test
This commit is contained in:
rusefillc 2024-03-01 11:07:36 -05:00 committed by rusefillc
parent 06765eff31
commit eb4fa43fe9
2 changed files with 35 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public class HwCiF4Discovery {
private final static Class[] tests = {
// huh? why does this not work for discovery? PTraceTest.class,
CompositeLoggerTest.class,
BurnCommandTest.class,
MiscTest.class,
CommonFunctionalTest.class,
PwmHardwareTest.class,

View File

@ -0,0 +1,34 @@
package com.rusefi.f4discovery;
import com.rusefi.RusefiTestBase;
import com.rusefi.io.LinkManager;
import com.rusefi.io.commands.BurnCommand;
import org.junit.Test;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import static org.junit.Assert.assertTrue;
public class BurnCommandTest extends RusefiTestBase {
@Test
public void executeBurnCommand() throws InterruptedException {
LinkManager linkManager = ecu.getLinkManager();
AtomicReference<Boolean> result = new AtomicReference<>();
CountDownLatch latch = new CountDownLatch(1);
linkManager.submit(new Runnable() {
@Override
public void run() {
result.set(BurnCommand.execute(ecu.getLinkManager().getBinaryProtocol()));
latch.countDown();
}
});
latch.await(30, TimeUnit.SECONDS);
assertTrue("burn command", result.get());
}
}