Commit 22e8b77
Skip Performance timeOrigin test on macOS hosts
Summary:
The `timeOrigin` test in `Performance-itest` compares
`performance.now() + performance.timeOrigin` against `Date.now()`. On
macOS this comparison is unreliable because `performance.now()` is
backed by a monotonic clock that does NOT advance while the system is
asleep, so the monotonic time drifts relative to wall time the longer
the machine has been running.
Use the new `Fantom.getRealPlatformOS()` to skip just this test on macOS
hosts while keeping it active on other platforms. A comment explains
why the test cannot be run there.
Changelog: [Internal]
Differential Revision: D1066696741 parent ea53118 commit 22e8b77
1 file changed
Lines changed: 20 additions & 1 deletion
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
44 | 63 | | |
45 | 64 | | |
46 | 65 | | |
| |||
0 commit comments