26 lines
954 B
Plaintext
26 lines
954 B
Plaintext
$OpenBSD: patch-test_test-fs_c,v 1.1.1.1 2017/02/14 09:37:16 edd Exp $
|
|
|
|
Workaround for a minor bug:
|
|
https://github.com/libuv/libuv/issues/1216
|
|
|
|
--- test/test-fs.c.orig Wed Feb 1 00:38:56 2017
|
|
+++ test/test-fs.c Thu Feb 9 22:06:12 2017
|
|
@@ -1621,7 +1621,7 @@ TEST_IMPL(fs_realpath) {
|
|
uv_fs_t req;
|
|
|
|
loop = uv_default_loop();
|
|
- ASSERT(0 == uv_fs_realpath(loop, &req, "no_such_file", dummy_cb));
|
|
+ ASSERT(0 == uv_fs_realpath(loop, &req, "no_such_dir/no_such_file", dummy_cb));
|
|
ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT));
|
|
ASSERT(dummy_cb_count == 1);
|
|
ASSERT(req.ptr == NULL);
|
|
@@ -1637,7 +1637,7 @@ TEST_IMPL(fs_realpath) {
|
|
ASSERT(req.result == UV_ENOENT);
|
|
uv_fs_req_cleanup(&req);
|
|
|
|
- ASSERT(UV_ENOENT == uv_fs_realpath(NULL, &req, "no_such_file", NULL));
|
|
+ ASSERT(UV_ENOENT == uv_fs_realpath(NULL, &req, "no_such_dir/no_such_file", NULL));
|
|
ASSERT(req.ptr == NULL);
|
|
ASSERT(req.result == UV_ENOENT);
|
|
uv_fs_req_cleanup(&req);
|