node/test/sequential
Michaël Zasso 1d35a066e7
src,test: ensure that V8 fast APIs are called
Adds a debug-only macro that can be used to track when a V8 fast API is
called. A map of counters is maintained in in thread-local storage and
an internal API can be called to get the total count associated with
a call id.
Specific tests are added and `crypto.timingSafeEqual` as well as
internal documentation are updated to show how to use the macro
and test fast API calls without running long loops.

PR-URL: https://github.com/nodejs/node/pull/54317
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2024-08-13 12:37:02 +00:00
..
sequential.status sea: support sea.getRawAsset() 2024-02-02 15:25:34 +01:00
test-async-wrap-getasyncid.js async_hooks,inspector: implement inspector api without async_wrap 2024-01-24 13:29:28 +00:00
test-buffer-creation-regression.js
test-child-process-emfile.js
test-child-process-execsync.js
test-child-process-exit.js
test-child-process-pass-fd.js
test-cli-syntax-bad.js
test-cli-syntax-file-not-found.js
test-cli-syntax-good.js
test-cli-syntax-require.js test: show more info on failure in test-cli-syntax-require.js 2023-09-12 17:02:51 +00:00
test-cluster-inspect-brk.js
test-cluster-net-listen-ipv6only-none.js
test-cluster-net-listen-ipv6only-rr.js
test-cluster-send-handle-large-payload.js src,test: further cleanup references to osx 2024-07-15 20:32:26 +00:00
test-cpu-prof-default.js
test-cpu-prof-dir-absolute.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-and-name.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-relative.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-worker.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-drained.js
test-cpu-prof-exit.js
test-cpu-prof-invalid-options.js src: fix c++ exception on bad command line arg 2023-01-22 10:39:16 +00:00
test-cpu-prof-kill.js
test-cpu-prof-name.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-worker-argv.js
test-crypto-timing-safe-equal.js src,test: ensure that V8 fast APIs are called 2024-08-13 12:37:02 +00:00
test-debug-prompt.js
test-debugger-custom-port.js
test-debugger-debug-brk.js
test-debugger-invalid-args.js lib,src: update exit codes as per todos 2023-02-26 17:03:06 +00:00
test-debugger-launch.mjs test: use --port=0 in debugger tests that do not have to work on 9229 2023-04-05 00:49:44 +02:00
test-debugger-pid.js
test-deprecation-flags.js
test-dgram-bind-shared-ports.js
test-dgram-implicit-bind-failure.js
test-dgram-pingpong.js
test-diagnostic-dir-cpu-prof.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-diagnostic-dir-heap-prof.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-fs-opendir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-11 19:08:08 +00:00
test-fs-readdir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-11 19:08:08 +00:00
test-fs-stat-sync-overflow.js test: use spawn and spawnPromisified instead of exec 2023-08-05 07:29:53 +00:00
test-fs-watch.js src,test: further cleanup references to osx 2024-07-15 20:32:26 +00:00
test-gc-http-client-onerror.js test: use os.availableParallelism() 2023-01-11 20:07:56 +00:00
test-gc-http-client-timeout.js test: refactor test-gc-http-client-timeout 2023-06-06 15:42:42 +00:00
test-gc-http-client.js test: use os.availableParallelism() 2023-01-11 20:07:56 +00:00
test-get-heapsnapshot-options.js
test-heapdump-flag-custom-dir.js process: add custom dir support for heapsnapshot-signal 2023-09-05 15:13:01 -07:00
test-heapdump-flag.js
test-heapdump.js
test-http2-large-file.js
test-http2-max-session-memory.js
test-http2-ping-flood.js
test-http2-settings-flood.js
test-http2-timeout-large-write-file.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-http2-timeout-large-write.js
test-http-econnrefused.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-http-keep-alive-large-write.js
test-http-keepalive-maxsockets.js
test-http-max-sockets.js
test-http-regr-gh-2928.js test: reduce the number of requests and parsers 2023-10-20 12:56:44 +00:00
test-http-server-keep-alive-timeout-slow-client-headers.js
test-http-server-keep-alive-timeout-slow-server.js
test-http-server-request-timeouts-mixed.js test: move test-http-server-request-timeouts-mixed to sequential 2024-05-11 20:07:28 +02:00
test-https-connect-localport.js
test-https-server-keep-alive-timeout.js
test-init.js
test-inspector-open-dispose.mjs test: stabilize the inspector-open-dispose test 2023-08-11 13:05:01 +00:00
test-inspector-port-cluster.js
test-module-loading.js module,win: fix long path resolve 2024-04-08 14:37:46 +00:00
test-net-better-error-messages-port.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-connect-econnrefused.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-connect-handle-econnrefused.js
test-net-connect-local-error.js
test-net-GH-5504.js
test-net-listen-shared-ports.js
test-net-localport.js
test-net-reconnect-error.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-response-size.js
test-net-server-address.js
test-net-server-bind.js
test-next-tick-error-spin.js
test-perf-hooks.js test: deflake test-perf-hooks.js 2023-09-29 18:14:01 +02:00
test-performance-eventloopdelay.js lib: refactor to use min/max of validateNumber 2023-02-03 21:12:05 +00:00
test-pipe.js
test-process-title.js
test-process-warnings.js
test-repl-timeout-throw.js
test-require-cache-without-stat.js
test-resolution-inspect-brk.js
test-runner-run-inspect.mjs
test-single-executable-application-assets-raw.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-assets.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-disable-experimental-sea-warning.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-empty.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-snapshot-and-code-cache.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-snapshot.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application-use-code-cache.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-single-executable-application.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-stream2-fs.js
test-stream2-stderr-sync.js
test-timers-block-eventloop.js
test-timers-set-interval-excludes-callback-duration.js
test-tls-connect.js
test-tls-lookup.js
test-tls-psk-client.js test: fallback to IPv4 if IPv6 is unavailable 2023-03-11 06:26:25 +00:00
test-tls-securepair-client.js test: fallback to IPv4 if IPv6 is unavailable 2023-03-11 06:26:25 +00:00
test-tls-session-timeout.js tls: fix negative sessionTimeout handling 2024-05-18 00:26:11 +00:00
test-util-debug.js
test-vm-break-on-sigint.js
test-vm-timeout-escape-promise-module-2.js test: ensure never settling promises are detected 2023-10-23 17:55:50 +00:00
test-vm-timeout-rethrow.js
test-watch-mode-inspect.mjs test: fix flaky test-watch-mode-inspect 2023-04-04 16:53:32 -07:00
test-watch-mode.mjs watch: reload changes in contents of --env-file 2024-08-05 10:41:33 +00:00
test-worker-eventlooputil.js
test-worker-fshandles-error-on-termination.js
test-worker-fshandles-open-close-on-termination.js
test-worker-heapsnapshot-options.js
test-worker-prof.js test: add spawnSyncAndAssert util 2024-03-20 19:44:14 +01:00
test-write-heapsnapshot-options.js
testcfg.py