Ben Noordhuis
aa37c698ee
test: add platform-specific checks for kill-after-spawn test
2011-08-02 00:46:44 +02:00
Ben Noordhuis
5a15717144
test: make spawn_helper4 never return
...
Its whole raison d'être is to sleep until it's killed.
2011-08-02 00:46:44 +02:00
Ben Noordhuis
e56c1d7a60
test: exit with status code 1 in spawn_helper4
...
Fixes broken test spawn_and_kill.
2011-08-01 22:42:32 +02:00
Ben Noordhuis
31ecdcf3a4
test: move run-test spawn helpers to a separate function
2011-08-01 22:42:32 +02:00
Ben Noordhuis
023f99a609
test: gets(3)? Just say no!
2011-08-01 18:14:14 +02:00
Ryan Dahl
e9bee5131a
add spawn benchmark
2011-07-30 22:45:03 -07:00
Igor Zinkovsky
3e6611a693
more output
2011-07-29 23:54:52 -07:00
Igor Zinkovsky
d272a2183d
Windows: spawn child processes
2011-07-29 19:02:51 -07:00
Ryan Dahl
7108ca8853
uv_spawn requires stdio pipes to be initialized
2011-07-29 15:37:00 -07:00
Ben Noordhuis
78e94e9589
bench: remove unused locals from benchmark-pump.c
2011-07-29 21:07:09 +02:00
Ben Noordhuis
eed6f395d1
pipe: uv_pipe_listen raises UV_EINVAL on unbound socket
2011-07-29 04:22:59 +02:00
Ryan Dahl
ddee1821fa
Add spawn_stdout test
2011-07-25 17:11:23 -07:00
Ryan Dahl
92bc7b4959
Start uv_spawn()
...
Unix only at the moment. Lacks test for stdio
2011-07-25 16:19:27 -04:00
Igor Zinkovsky
e7497227bd
merge uv_tcp_listen and uv_pipe_listen into uv_listen
2011-07-22 16:57:09 -07:00
Ben Noordhuis
27999e839a
test: update BAD_PIPENAME for Unices, check for UV_EACCESS
2011-07-21 19:48:42 +02:00
Ben Noordhuis
7fbe0c3882
test: run-tests helper_name runs helper in same process
...
Fixes #116 .
2011-07-21 19:02:19 +02:00
Bert Belder
1ab28df433
Test that loop refs going down to zero in a prepare callback does not hang the event loop
2011-07-21 14:53:40 +02:00
Bert Belder
9d8c9cce7c
Move loop reference tests to their own file
2011-07-21 14:51:56 +02:00
Bert Belder
5f12c30f73
Correct idle_starvation test
2011-07-21 03:28:40 +02:00
Bert Belder
d9612fe0e7
More changes related to uv_close returning void
2011-07-21 03:27:43 +02:00
Ryan Dahl
b931c9313f
uv_close returns void
2011-07-20 18:03:48 -07:00
Bert Belder
f0c20aa913
Test: active idle watcher should not block other events
2011-07-21 02:53:27 +02:00
Igor Zinkovsky
afc998759f
Add uv_pipe_bind tests
2011-07-21 02:25:10 +02:00
Ryan Dahl
685c083c79
Only sleep on 'make bench' not on 'make test'
2011-07-20 12:18:07 -07:00
Ryan Dahl
b13a446d6c
Test for sync tcp and pipe connections
2011-07-20 12:14:21 -07:00
Ben Noordhuis
eb5e00fd1b
runner: give helpers a chance to clean up after the test.
...
Fixes #50 .
2011-07-20 21:13:00 +02:00
Ben Noordhuis
6c8acb0ed1
task: flush stderr after printing
2011-07-20 21:00:59 +02:00
Ryan Dahl
b38ba04698
Fix benchmark output for ares and getaddrinfo
2011-07-20 11:53:09 -07:00
Ryan Dahl
abf854597b
Don't output progress in 'make bench'
...
Fixes #115 .
2011-07-20 11:44:10 -07:00
Ryan Dahl
a24d6e4bd8
new uv_req_t sizes in benchmark-sizes
2011-07-19 09:35:09 -07:00
Bert Belder
3d2d97dbae
Make test-hrtime a little better
2011-07-19 15:01:11 +02:00
Bert Belder
96f2ef6bc6
Make test-getsockname compile with msvc
2011-07-19 15:01:10 +02:00
Ben Noordhuis
c2ad51e39f
test-bind-error: fix 'control reaches end of non-void function'
2011-07-19 13:51:31 +02:00
Ryan Dahl
d4563a197a
Allow and test for lazy uv_tcp_listen
2011-07-19 02:40:54 -07:00
Ryan Dahl
07b49ce59a
add uv_ip4_name and uv_ip6_name
2011-07-18 17:39:04 -07:00
Ben Noordhuis
4eff34da43
uv-unix: pipes API implementation
...
Based on UNIX sockets to avoid the vagaries of FIFOs
in asynchronous mode. Currently unlinks stale sockets
before binding and cleans them up again after shutdown.
2011-07-19 00:58:02 +02:00
Igor Zinkovsky
4d31f838b0
Windows: handle ERROR_PIPE_BUSY in uv_pipe_connect
2011-07-18 13:02:32 -07:00
Bert Belder
902dd567b1
Benchmarks use the improved request api
2011-07-14 10:46:34 -07:00
Bert Belder
0ea4c87f8b
Windows implementation of new request API
...
This changes uv-win to use the new uv_req subclasses.
It gets rid of the uv_req.flags field. There used to be only request flag
(UV_REQ_PENDING), and it was mostly obsolete; it only had a real purpose for
internal uv_read requests. Now we'll use the UV_HANDLE_READ_PENDING flag on
the handle instead.
This patch also simplifies the accept logic for named pipes on windows. We
no longer have a separate struct to store information about established
connections. Instead we just carry over the windows HANDLE from the accept
request to the client handle in uv_pipe_accept().
2011-07-14 10:46:08 -07:00
Ryan Dahl
abe0b1ea61
Better request API
...
Instead of uv_shutdown, uv_write, uv_connect taking raw uv_req_t we subclass
uv_req_t into uv_shutdown_t, uv_write_t, and uv_connect_t.
uv_req_init is removed.
2011-07-14 10:45:28 -07:00
Igor Zinkovsky
f5ff869488
allocate windows pipe handles on demand
2011-07-13 20:43:10 -07:00
Ben Noordhuis
9aff11026b
runner: bring back benchmark output
2011-07-14 03:33:56 +02:00
Bert Belder
4c2d0545fc
Whitespace fixes
2011-07-14 03:00:21 +02:00
Ben Noordhuis
a29b2099ac
Make it possible to run individual tests.
...
Fixes #100 .
2011-07-14 02:19:36 +02:00
Ben Noordhuis
9c19391536
test-ping-pong: cast callback to expected prototype.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
afc96b58c8
test-delayed-accept.c: fix type mismatch in comparison.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
1a53b89847
test-hrtime: fix printf() compiler warning.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
0ebd2ce02d
test-delayed-accept: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
d7389e6f89
test-async: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
4829ad5d04
test-getsockname: fix function prototype, clean up unused variable.
2011-07-13 18:06:05 +02:00