test/platform/pthread/thread/test_thread_cond_create.cpp
TEST(basics)
{
    allocator* alloc = nullptr;
    thread_cond* cond = nullptr;

    /* we should be able to create a malloc allocator. */
    TEST_ASSERT(STATUS_SUCCESS == malloc_allocator_create(&alloc));

    /* we should be able to create a thread cond. */
    TEST_ASSERT(STATUS_SUCCESS == thread_cond_create(&cond, alloc));

    /* we should be able to release a thread cond. */
    TEST_ASSERT(
        STATUS_SUCCESS == resource_release(thread_cond_resource_handle(cond)));

    /* clean up. */
    TEST_ASSERT(
        STATUS_SUCCESS == resource_release(allocator_resource_handle(alloc)));
}
/**
 * Verify that we can create a \ref thread_cond.
 */
Verify that we can create a \ref thread_cond.
Verify that we can create a \ ref thread_cond .
TEST(basics)
{
    allocator* alloc = nullptr;
    thread_cond* cond = nullptr;
    TEST_ASSERT(STATUS_SUCCESS == malloc_allocator_create(&alloc));
    TEST_ASSERT(STATUS_SUCCESS == thread_cond_create(&cond, alloc));
    TEST_ASSERT(
        STATUS_SUCCESS == resource_release(thread_cond_resource_handle(cond)));
    TEST_ASSERT(
        STATUS_SUCCESS == resource_release(allocator_resource_handle(alloc)));
}
TEST ( basics ) { allocator * alloc = nullptr ; thread_cond * cond = nullptr ; TEST_ASSERT ( STATUS_SUCCESS == malloc_allocator_create ( & alloc ) ) ; TEST_ASSERT ( STATUS_SUCCESS == thread_cond_create ( & cond , alloc ) ) ; TEST_ASSERT ( STATUS_SUCCESS == resource_release ( thread_cond_resource_handle ( cond ) ) ) ; TEST_ASSERT ( STATUS_SUCCESS == resource_release ( allocator_resource_handle ( alloc ) ) ) ; }
Verify that we can create a \ref thread_cond.
Verify that we can create a \ ref thread_cond .
/* we should be able to create a malloc allocator. */ /* we should be able to create a thread cond. */ /* we should be able to release a thread cond. */ /* clean up. */