Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Gilli <julien.gilli@joyent.com>2014-07-23 05:03:10 +0400
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-07-31 19:53:24 +0400
commitbefbbad0513c5f1075c573570a678d148b645a82 (patch)
tree855d2c9ddb23be3843f92bceb9098156e0d18398 /Makefile
parent9f36c0d235f4eb7e6528face49c15045a5e41e14 (diff)
timers: backport f8193ab
Original commit message: timers: use uv_now instead of Date.now This saves a few calls to gettimeofday which can be expensive, and potentially subject to clock drift. Instead use the loop time which uses hrtime internally. In addition to the backport, this commit: - keeps _idleStart timers' property which is still set to Date.now() to avoid breaking existing code that uses it, even if its use is discouraged. - adds automated tests. These tests use a specific branch of libfaketime that hasn't been submitted upstream yet. libfaketime is git cloned if needed when running automated tests. Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 281c283ffbd..3464c2e2f16 100644
--- a/Makefile
+++ b/Makefile
@@ -125,6 +125,13 @@ test-npm: node
test-npm-publish: node
npm_package_config_publishtest=true ./node deps/npm/test/run.js
+test-timers:
+ $(MAKE) --directory=tools faketime
+ $(PYTHON) tools/test.py --mode=release timers
+
+test-timers-clean:
+ $(MAKE) --directory=tools clean
+
apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \
$(addprefix out/,$(apidoc_sources:.markdown=.json))