diff options
author | Ayke van Laethem <[email protected]> | 2024-10-30 19:24:47 +0100 |
---|---|---|
committer | Ayke <[email protected]> | 2024-11-07 15:37:18 +0100 |
commit | a6c4287b4d2dc8c951227820a1dbc69d7e26b689 (patch) | |
tree | fcb3f263e4e26f4bdd41f57c1a075eb69f4e0d26 /builder/sizes_test.go | |
parent | f9f439ad49ef8a21e373568277aff8e448806cf2 (diff) | |
download | tinygo-a6c4287b4d2dc8c951227820a1dbc69d7e26b689.tar.gz tinygo-a6c4287b4d2dc8c951227820a1dbc69d7e26b689.zip |
runtime: don't call sleepTicks with a negative duration
There are rare cases where this can happen, see for example
https://github.com/tinygo-org/tinygo/issues/4568
Diffstat (limited to 'builder/sizes_test.go')
-rw-r--r-- | builder/sizes_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builder/sizes_test.go b/builder/sizes_test.go index 8b669462a..dd89609e7 100644 --- a/builder/sizes_test.go +++ b/builder/sizes_test.go @@ -41,9 +41,9 @@ func TestBinarySize(t *testing.T) { // This is a small number of very diverse targets that we want to test. tests := []sizeTest{ // microcontrollers - {"hifive1b", "examples/echo", 4568, 280, 0, 2268}, - {"microbit", "examples/serial", 2868, 388, 8, 2272}, - {"wioterminal", "examples/pininterrupt", 6104, 1484, 116, 6832}, + {"hifive1b", "examples/echo", 4580, 280, 0, 2268}, + {"microbit", "examples/serial", 2888, 388, 8, 2272}, + {"wioterminal", "examples/pininterrupt", 6124, 1484, 116, 6832}, // TODO: also check wasm. Right now this is difficult, because // wasm binaries are run through wasm-opt and therefore the |