diff --git a/test/uvw/fs_event.cpp b/test/uvw/fs_event.cpp index cd4f84e9..18e23378 100644 --- a/test/uvw/fs_event.cpp +++ b/test/uvw/fs_event.cpp @@ -3,5 +3,8 @@ TEST(FsEvent, TODO) { + auto loop = uvw::Loop::getDefault(); + auto handle = loop->resource(); + // TODO } diff --git a/test/uvw/fs_poll.cpp b/test/uvw/fs_poll.cpp index e747cdfe..d90152ae 100644 --- a/test/uvw/fs_poll.cpp +++ b/test/uvw/fs_poll.cpp @@ -3,5 +3,8 @@ TEST(FsPoll, TODO) { + auto loop = uvw::Loop::getDefault(); + auto handle = loop->resource(); + // TODO } diff --git a/test/uvw/pipe.cpp b/test/uvw/pipe.cpp index 454fdbe3..c5dbddf6 100644 --- a/test/uvw/pipe.cpp +++ b/test/uvw/pipe.cpp @@ -3,5 +3,8 @@ TEST(Pipe, TODO) { + auto loop = uvw::Loop::getDefault(); + auto handle = loop->resource(); + // TODO } diff --git a/test/uvw/poll.cpp b/test/uvw/poll.cpp index e665973d..92db0e5d 100644 --- a/test/uvw/poll.cpp +++ b/test/uvw/poll.cpp @@ -3,5 +3,8 @@ TEST(Poll, TODO) { + auto loop = uvw::Loop::getDefault(); + auto handle = loop->resource(0); + // TODO } diff --git a/test/uvw/process.cpp b/test/uvw/process.cpp index 2d47d00a..0086ce80 100644 --- a/test/uvw/process.cpp +++ b/test/uvw/process.cpp @@ -3,5 +3,8 @@ TEST(Process, TODO) { + auto loop = uvw::Loop::getDefault(); + auto handle = loop->resource(); + // TODO } diff --git a/test/uvw/resource.cpp b/test/uvw/resource.cpp index 02e38baf..3f444910 100644 --- a/test/uvw/resource.cpp +++ b/test/uvw/resource.cpp @@ -17,11 +17,10 @@ TEST(Resource, Functionalities) { auto loop = uvw::Loop::getDefault(); auto resource = loop->resource(); - ASSERT_NO_THROW(resource->loop()); + ASSERT_EQ(&resource->loop(), loop.get()); - auto data = std::make_shared(42); + resource->data(std::make_shared(42)); - ASSERT_NO_THROW(resource->data(data)); ASSERT_EQ(*std::static_pointer_cast(resource->data()), 42); ASSERT_EQ(*resource->data(), 42);