From 74cc3851a923ea84a567752194a42dd2ca0bf0f1 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 1 Jul 2023 21:34:11 -0700 Subject: [PATCH] patch test --- .../src/test/java/com/rusefi/test/OutputsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java_tools/configuration_definition/src/test/java/com/rusefi/test/OutputsTest.java b/java_tools/configuration_definition/src/test/java/com/rusefi/test/OutputsTest.java index d23b318858..3961f1068a 100644 --- a/java_tools/configuration_definition/src/test/java/com/rusefi/test/OutputsTest.java +++ b/java_tools/configuration_definition/src/test/java/com/rusefi/test/OutputsTest.java @@ -145,6 +145,7 @@ public void generateGetOutputs() { outputValueConsumer.conditional = "EFI_BOOST_CONTROL"; state.readBufferedReader(test, (outputValueConsumer)); assertEquals( + "#if !EFI_UNIT_TEST\n" + "#include \"pch.h\"\n" + "#include \"value_lookup.h\"\n" + "float getOutputValueByName(const char *name) {\n" + @@ -164,7 +165,8 @@ public void generateGetOutputs() { "#endif\n" + "\t}\n" + "\treturn EFI_ERROR_CODE;\n" + - "}\n", outputValueConsumer.getContent()); + "}\n" + + "#endif\n", outputValueConsumer.getContent()); } @Test