@@ -102,6 +102,7 @@ func TestCompileOfProblematicSketches(t *testing.T) {
102
102
{"SketchNoFunctionsTwoFiles" , testBuilderSketchNoFunctionsTwoFiles },
103
103
{"SketchWithClassAndMethodSubstring" , testBuilderSketchWithClassAndMethodSubstring },
104
104
{"SketchThatChecksIfSPIHasTransactions" , tryBuildAvrLeonardo },
105
+ {"SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet" , testBuilderSketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet },
105
106
{"SketchWithDependendLibraries" , tryBuildAvrLeonardo },
106
107
{"SketchWithFunctionPointer" , tryBuildAvrLeonardo },
107
108
{"USBHostExample" , testBuilderUSBHostExample },
@@ -792,6 +793,14 @@ func testBuilderSketchClassFunction(t *testing.T, env *integrationtest.Environme
792
793
})
793
794
}
794
795
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
+
795
804
type builderOutput struct {
796
805
CompilerOut string `json:"compiler_out"`
797
806
CompilerErr string `json:"compiler_err"`
0 commit comments