zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

[timers] Output of Timers is not in order on Linux

Open qiaojingx opened this issue 7 years ago • 2 comments

Description

This is a regression issue. The output order of Timers.js changes each time on Linux.

Test Code

Timers.js

Steps to Reproduction

  1. make BOARD=linux
  2. ./outdir/linux/release/jslinux samples/Timers.js

Actual Result

selection_029

selection_041

Expected Result

selection_043

Test Builds

Branch Commit Id Target Device Test Date Result
master 687af46 Linux Nov 8, 2017 Fail
master 6d751ea Linux Nov 8, 2017 Pass

Additional Information

qiaojingx avatar Nov 08 '17 07:11 qiaojingx

This regression is caused by reverting the linux timers back to old way of doing timers, since the new timers used in Zephyr is more accurate but it doesn't build for linux on Mac. So until we find a way to add async timers support on Mac, the linux timers will be inaccurate.

jimmy-huang avatar Nov 08 '17 21:11 jimmy-huang

Marking as low priority because Linux is just a testing target, not a real use case.

grgustaf avatar Dec 01 '17 20:12 grgustaf