Ben Noordhuis
379ca428ef
test: fix compiler warnings
...
* remove unused variables and functions
* replace %llu with %zu when printing size_t variables
2012-03-16 02:46:51 +01:00
Ben Noordhuis
c21184c103
test: make variables in benchmark-ares static
2012-03-16 00:48:06 +01:00
Ben Noordhuis
6031156602
test: silence compiler warning
...
main_proc is never read without having been initialized first but gcc 4.4.x
fails to infer that.
2012-03-15 16:09:06 +01:00
Ben Noordhuis
8c78cb40ff
unix: replace C99/C++ comments, fix build
2012-03-09 09:15:43 -08:00
Ben Noordhuis
e190162975
test: test cross-process handle send/recv
2012-03-09 09:12:53 -08:00
Bert Belder
8ffad48818
Make the thread_create benchmark not time out
2012-03-09 17:53:48 +01:00
Bert Belder
0d6aa2a2e5
Windows: output newline before output from passed tests
2012-03-09 17:15:00 +01:00
Bert Belder
e99fba47c8
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/win/pipe.c
test/run-tests.c
2012-03-09 16:41:12 +01:00
Bert Belder
3aa6069abf
Windows test runner: show process name instead of test name
...
If a test failed we would previously see:
Output from process `test_foo`: blah
Output from process `test_foo`: (nothing)
This commit changes it to:
Output from process `test_foo`: blah
Output from process `foo_helper`: (nothing)
2012-03-09 16:31:14 +01:00
Bert Belder
50216706c2
Test runner: fix compiler warnings
2012-03-09 16:31:13 +01:00
Bert Belder
f285caf0b5
Test counters_init: fix compiler warnings
2012-03-09 16:31:13 +01:00
Bert Belder
aafa7db1d4
Test benchmark_pound: fix compilation problem
2012-03-09 16:31:12 +01:00
Bert Belder
abc4f56ff0
Test chown_root: make it pass on windows
2012-03-09 16:31:11 +01:00
Bert Belder
09a0d61e7b
Test cwd_and_chdir: don't chdir to "" or "c:"
...
It should not strip the trailing (back)slash from a root directory.
2012-03-09 16:31:02 +01:00
Bert Belder
422a898a7f
Tests: verify that shutdown_cb is always called
2012-03-09 05:00:11 +01:00
Bert Belder
fb65d74c84
Tests: verify that uv_write and uv_shutdown ref the event loop
2012-03-09 05:00:11 +01:00
Bert Belder
87752ac38b
Fold trailing whitespace
2012-03-09 05:00:09 +01:00
Bert Belder
e53d7e3a11
Make test-tty pass with redirected stdio
2012-03-08 17:02:05 +01:00
Bert Belder
743cab9f9d
Test runner: avoid process_wait failure when the test process didn't start
2012-03-08 16:44:30 +01:00
Brandon Philips
d07f2466d0
test: fs: add tests for read EOF
...
This fix was merged without tests:
https://github.com/philips/libuv/tree/fix-read-on-windows-to-handle-eof
So take tests from igorzi:
46024bf33d
2012-03-07 14:33:33 +01:00
Shigeki Ohtsu
b55801f225
win, unix: add uv_dlerror() and uv_dlerror_free()
2012-03-02 16:39:21 +01:00
Igor Zinkovsky
702f905f73
test: make pipe_connect_to_file succeed with ECONNREFUSED
2012-03-01 14:32:59 -08:00
Igor Zinkovsky
6bbccf1fe0
windows: return UV_ENOTSOCK when doing uv_pipe_connect to a file
2012-03-01 12:11:29 -08:00
Ben Noordhuis
ec0eff955e
Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.
...
Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.
Revert "test: Add test case for spawning detached child processes."
Revert "win: Implement options.detached for uv_spawn() for Windows."
Revert "unix: Implement options.detached for uv_spawn() for unix."
Revert "Add "detached" member to uv_process_options_t to denote whether a child
process should spawn detached from its parent."
This reverts commit ea9baef95c .
This reverts commit e99fdf0df6 .
This reverts commit 149d32cb96 .
This reverts commit b3e0ad4db8 .
2012-02-28 15:29:05 +01:00
Charlie McConnell
ea9baef95c
test: Add test case for spawning detached child processes.
2012-02-24 15:15:00 +01:00
Ben Noordhuis
4240f0d710
test: check uv_fs_*() return values
2012-02-23 05:43:21 -08:00
Ben Noordhuis
a5082e8271
test: add proper type casts
2012-02-23 05:42:45 -08:00
Bert Belder
1d942e2ad4
Merge branch 'v0.6'
2012-02-13 20:02:39 +01:00
Bert Belder
bc8b99097a
win: add ERROR_FILENAME_EXCED_RANGE mapping, fix fs_file_nametoolong test
2012-02-13 20:01:36 +01:00
Ben Noordhuis
4e1f2b1f64
Merge remote-tracking branch 'origin/v0.6'
2012-02-12 16:10:05 +01:00
Ben Noordhuis
c5aa86bd39
Remove uv_import() and uv_export().
...
Not needed anymore now that support for isolates has been removed from Node.
This commit reverts the following commits:
812e410 test: fix up stream import/export test
e34dc13 unix: implement uv_import() and uv_export()
d1a0e8e test: fix undefined macro error
2ce0058 import/export streams accross loops
2012-02-12 15:49:54 +01:00
Igor Zinkovsky
f9be43a564
support half-duplex pipes
2012-02-09 13:33:15 -08:00
Igor Zinkovsky
53eb9935cb
fix windows build
2012-02-09 13:15:37 -08:00
Roman Shtylman
9fa2cf2eac
test: add multicast TTL test
2012-02-06 15:02:39 +01:00
Maciej Małecki
0596c59bc3
test: test if UV_ELOOP mapping works
2012-02-03 22:20:14 +01:00
Bert Belder
267e75dda2
Windows: better stat implementation
2012-02-02 17:03:40 +01:00
isaacs
243cfcd078
Merge remote-tracking branch 'ry/v0.6'
2012-01-31 18:00:59 -08:00
Brandon Philips
4cfda74de4
uv.h: add EPERM to errno map to fix regression
...
EPERM isn't mapped in so chown returns an unknown error. This is a
regression from 0.4.12.
philips:node/ (master*) $ cat chown.js
var fs = require('fs')
fs.chown("/tmp/foobar", 100, 100, function(er){ console.log(er);})
philips:node/ (master*) $ ls -la /tmp/foobar
total 0
drwxr-xr-x 2 root wheel 68 Jan 24 17:21 .
0.4
---
philips:node/ (master*) $ /usr/local/Cellar/node/0.4.12/bin/node chown.js
{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'EPERM, Operation not permitted \'/tmp/foobar\'',
errno: 1,
code: 'EPERM',
path: '/tmp/foobar' }
master
------
philips:node/ (master*) $ ./node chown.js
{ [Error: UNKNOWN, unknown error '/tmp/foobar'] errno: -1, code: 'UNKNOWN', path: '/tmp/foobar' }
AFTER
-----
philips:node/ (master*) $ ./node chown.js
{ [Error: EPERM, operation not permitted '/tmp/foobar'] errno: 49, code: 'EPERM', path: '/tmp/foobar' }
2012-01-31 16:37:26 -08:00
Bert Belder
8c8e6532bf
test-multicast-join: don't attempt to bind to a multicast address
...
Does not work on Windows. Bind to a normal interface first, then join the
multicast group instead.
2012-01-31 17:29:21 +01:00
Ben Noordhuis
cd16ba5186
test: add UDP broadcast/multicast/ttl tests
2012-01-31 16:52:27 +01:00
Ben Noordhuis
812e410772
test: fix up stream import/export test
2012-01-30 21:45:04 +01:00
Ben Noordhuis
d1a0e8e7e2
test: fix undefined macro error
2012-01-30 21:44:27 +01:00
Igor Zinkovsky
2ce0058251
import/export streams accross loops
2012-01-30 21:44:27 +01:00
Ben Noordhuis
f9b478cfd8
test: add windows-only uv_fs_stat regression test
2012-01-28 16:52:46 +01:00
Ben Noordhuis
3de0411591
Merge remote-tracking branch 'origin/v0.6'
2012-01-27 22:23:26 +01:00
Ben Noordhuis
3f1bad2050
test: add missing return statement in fs_stat_root
2012-01-27 22:10:20 +01:00
Bert Belder
92b260c065
windows: fix stat("c:\\") regression
2012-01-27 22:09:55 +01:00
Bert Belder
f9252750e7
Fix windows build
2012-01-27 16:29:57 +01:00
Maciej Małecki
24e6c7ec86
unix: map ENAMETOOLONG to UV_ENAMETOOLONG
...
With tests. Closes #295
2012-01-23 19:33:09 +01:00
Ben Noordhuis
bf8ccfce18
unix: fix segfault in uv_guess_handle()
...
Fixes #293 .
2012-01-17 17:47:33 +01:00