Skip to content

Commit

Permalink
Addded another test case for non .ino files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 12, 2024
1 parent fa494b5 commit 5e95130
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/integrationtest/compile_4/broken_symlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ func TestCompileWithBrokenSymLinks(t *testing.T) {
_, _, err = cli.Run("compile", "-b", "arduino:avr:uno", sketch.String())
require.Error(t, err)
})

t.Run("NonInoSketchFileBroken", func(t *testing.T) {
sketch, err := paths.New("testdata", "ValidSketchWithNonInoBrokenSketchFileSymlink").Abs()
require.NoError(t, err)
_, _, err = cli.Run("compile", "-b", "arduino:avr:uno", sketch.String())
require.Error(t, err)
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
void setup() {}
void loop() {}

0 comments on commit 5e95130

Please sign in to comment.