Skip to content

Commit 68f4035

Browse files
ported SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet from legacy into integration test
1 parent fde5d3c commit 68f4035

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: internal/integrationtest/compile_4/compile_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func TestCompileOfProblematicSketches(t *testing.T) {
102102
{"SketchNoFunctionsTwoFiles", testBuilderSketchNoFunctionsTwoFiles},
103103
{"SketchWithClassAndMethodSubstring", testBuilderSketchWithClassAndMethodSubstring},
104104
{"SketchThatChecksIfSPIHasTransactions", tryBuildAvrLeonardo},
105+
{"SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet", testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet},
105106
{"SketchWithDependendLibraries", tryBuildAvrLeonardo},
106107
{"SketchWithFunctionPointer", tryBuildAvrLeonardo},
107108
{"USBHostExample", testBuilderUSBHostExample},
@@ -792,6 +793,14 @@ func testBuilderSketchClassFunction(t *testing.T, env *integrationtest.Environme
792793
})
793794
}
794795

796+
func testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet(t *testing.T, env *integrationtest.Environment, cli *integrationtest.ArduinoCLI) {
797+
t.Run("Build", func(t *testing.T) {
798+
// Build
799+
_, err := tryBuild(t, env, cli, "arduino:avr:leonardo")
800+
require.Error(t, err)
801+
})
802+
}
803+
795804
type builderOutput struct {
796805
CompilerOut string `json:"compiler_out"`
797806
CompilerErr string `json:"compiler_err"`

0 commit comments

Comments
 (0)