-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The machine package wasn't tested for every board. Therefore, add a new serial-like test that also tries to import the machine package. This should highlight potential issues in the future.
- Loading branch information
1 parent
385a792
commit e612f7c
Showing
2 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package main | ||
|
||
// This is the same as examples/serial, but it also imports the machine package. | ||
// It is used as a smoke test for the machine package (for boards that don't | ||
// have an on-board LED and therefore can't use examples/blinky1). | ||
|
||
import ( | ||
_ "machine" // smoke test for the machine package | ||
"time" | ||
) | ||
|
||
func main() { | ||
for { | ||
println("hello world!") | ||
time.Sleep(time.Second) | ||
} | ||
} |