Revision fcdda211 tests/test-aio.c

b/tests/test-aio.c
396 396
    g_assert(!aio_poll(ctx, false));
397 397
    g_assert_cmpint(data.n, ==, 0);
398 398

  
399
    sleep(1);
399
    g_usleep(1 * G_USEC_PER_SEC);
400 400
    g_assert_cmpint(data.n, ==, 0);
401 401

  
402 402
    g_assert(aio_poll(ctx, false));
......
729 729

  
730 730
    g_assert_cmpint(data.n, ==, 0);
731 731

  
732
    sleep(1);
732
    g_usleep(1 * G_USEC_PER_SEC);
733 733
    g_assert_cmpint(data.n, ==, 0);
734 734

  
735 735
    g_assert(g_main_context_iteration(NULL, false));
......
739 739
    do {
740 740
        g_assert(g_main_context_iteration(NULL, true));
741 741
    } while (qemu_clock_get_ns(data.clock_type) <= expiry);
742
    sleep(1);
742
    g_usleep(1 * G_USEC_PER_SEC);
743 743
    g_main_context_iteration(NULL, false);
744 744

  
745 745
    g_assert_cmpint(data.n, ==, 2);

Also available in: Unified diff