Searched refs:testfd (Results 1 – 1 of 1) sorted by relevance
414 int testfd; in test_io_channel_unix_fd_pass() local425 testfd = open(TEST_FILE, O_RDWR|O_TRUNC|O_CREAT, 0700); in test_io_channel_unix_fd_pass()426 g_assert(testfd != -1); in test_io_channel_unix_fd_pass()427 fdsend[0] = testfd; in test_io_channel_unix_fd_pass()428 fdsend[1] = testfd; in test_io_channel_unix_fd_pass()429 fdsend[2] = testfd; in test_io_channel_unix_fd_pass()469 g_assert_cmpint(fdrecv[i], !=, testfd); in test_io_channel_unix_fd_pass()485 g_assert(lseek(testfd, 0, SEEK_SET) == 0); in test_io_channel_unix_fd_pass()486 g_assert(read(testfd, bufrecv, G_N_ELEMENTS(bufrecv)) == in test_io_channel_unix_fd_pass()497 close(testfd); in test_io_channel_unix_fd_pass()