Commits on Source (2)
-
f9d0c115
-
Possible to run all tests (by default from the test suite): vlc/build-linux/test $ ./test_src_clock_clock [normal]: checking that normal update has a coeff of 1.0f [lowprecision]: checking that low precision update has a coeff near 1.0f [drift_72]: checking that a drift of 72ms in 2h is handled [drift_-72]: checking that a drift of -72ms in 2h is handled [drift_864]: checking that a drift of 864ms in 24h is handled [drift_-864]: checking that a drift of -864ms in 24h is handled [drift_sudden]: checking that a sudden drift is handled Or run one test with traces: ./test_src_clock_clock lowprecision --tracer=json --json-tracer-file=foo.trace -vv The test fake the timestamps that are sent to the default tracer to behave like a live playback. One possible future scenario would be to feed the clock with real points taken from a real 24h live-streaming playback.
08950258
Showing
- include/vlc_tracer.h 12 additions, 1 deletioninclude/vlc_tracer.h
- src/libvlccore.sym 1 addition, 0 deletionssrc/libvlccore.sym
- src/misc/tracer.c 13 additions, 0 deletionssrc/misc/tracer.c
- test/Makefile.am 5 additions, 0 deletionstest/Makefile.am
- test/src/clock/clock.c 608 additions, 0 deletionstest/src/clock/clock.c
test/src/clock/clock.c
0 → 100644