aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-29 18:12:23 +0100
committereunhhu <[email protected]>2026-09-29 18:12:23 +0100
commitc919b5f81ad6cad55935fa7a22bfda9539dd584f (patch)
tree35a59078aad71e90b5d9f1f23f9f80355ed9325b /Makefile
parent434e8a9930d954494a462690739ea4ead21ff4e8 (diff)
downloadvega-c919b5f81ad6cad55935fa7a22bfda9539dd584f.tar.gz
vega-c919b5f81ad6cad55935fa7a22bfda9539dd584f.zip
Wait for timers on the monotonic clock; events still see the wall clock
The terminal, the pixel surfaces and the web page reckoned when a timer was due on the wall clock: set back, a timer waited until the clock came again to the tick it had waited for (Pure's review 004). vega_clock is the monotonic clock; timers are due on it, and a tick sets the time its event sees from the wall clock (vega_now), as before. check.py's clock_set_back runs a timer of 20 ms in the terminal with the wall clock set back an hour 0.2 s in (Pure's build/clock-back.so, an LD_PRELOAD of clock_gettime): 40 ticks in 0.8 s, where Vega before this stops at 9. make check passes it --clock-back.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3ddf7e6..f416d1e 100644
--- a/Makefile
+++ b/Makefile
@@ -99,5 +99,6 @@ check-text: $(BUILD)/vega-symbols $(BUILD)/test-text $(BUILD)/test-layout check-
check: $(BUILD)/vega $(BUILD)/vega-surface.so check-text
$(MAKE) -C $(AUP) build/aup
- $(MAKE) -C $(PURE) build/pure-serve
- python3 tests/check.py --vega $(BUILD)/vega --symbols $(BUILD)/vega-symbols --aup $(AUP)/build/aup --serve $(PURE)/build/pure-serve
+ $(MAKE) -C $(PURE) build/pure-serve build/clock-back.so
+ python3 tests/check.py --vega $(BUILD)/vega --symbols $(BUILD)/vega-symbols --aup $(AUP)/build/aup --serve $(PURE)/build/pure-serve \
+ --clock-back $(PURE)/build/clock-back.so