Home
last modified time | relevance | path

Searched refs:fds (Results 1 - 7 of 7) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
H A Dipc_transactor_test.cpp32 static void RedirectStdoutToPipe(string_view procName, PipeFds fds) in RedirectStdoutToPipe() argument
34 close(fds[0]); in RedirectStdoutToPipe()
37 dup2(fds[1], STDOUT_FILENO); in RedirectStdoutToPipe()
42 static string WaitPidAndReadPipe(pid_t pid, PipeFds fds) in WaitPidAndReadPipe() argument
46 close(fds[1]); in WaitPidAndReadPipe()
50 auto size = read(fds[0], buf, sizeof(buf)); in WaitPidAndReadPipe()
95 int32_t fds[2]; in TEST_P() local
96 ASSERT_EQ(pipe(fds), 0); in TEST_P()
100 RedirectStdoutToPipe(token + "-client", fds); in TEST_P()
112 auto clientOutput = WaitPidAndReadPipe(pid, fds); in TEST_P()
140 int32_t fds[2]; TEST() local
197 int32_t fds[2]; TEST() local
245 int32_t fds[2]; TEST() local
288 int32_t fds[2]; TEST() local
[all...]
/test/xts/hats/kernel/syscalls/async/epoll_ctl/
H A DEpollCtlApiTest.cpp68 int fds[2]; in HWTEST_F() local
74 int ret = pipe(fds); in HWTEST_F()
81 ret = epoll_ctl(fd, EPOLL_CTL_ADD, fds[0], &ev); in HWTEST_F()
84 ret = epoll_ctl(fd, EPOLL_CTL_MOD, fds[0], &ev); in HWTEST_F()
87 ret = epoll_ctl(fd, EPOLL_CTL_DEL, fds[0], &ev); in HWTEST_F()
90 close(fds[0]); in HWTEST_F()
91 close(fds[1]); in HWTEST_F()
105 int fds[2]; in HWTEST_F() local
108 int ret = pipe(fds); in HWTEST_F()
116 ret = epoll_ctl(-1, EPOLL_CTL_ADD, fds[ in HWTEST_F()
[all...]
/test/xts/acts/kernel_lite/net_posix/src/
H A DActsNetTest.cpp516 int fds[TEST_FD_COUNT] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in SelectServerForFork() local
517 fds[0] = srvFd; in SelectServerForFork()
524 if (fds[i] != -1) { in SelectServerForFork()
525 FD_SET(fds[i], &readSet); in SelectServerForFork()
526 if (maxFd < fds[i]) { in SelectServerForFork()
527 maxFd = fds[i]; in SelectServerForFork()
529 printf("[&&&][select process]fd info[%d:%d]\n", i, fds[i]); in SelectServerForFork()
550 if (fds[i] == -1) { in SelectServerForFork()
551 fds[i] = cliFd; in SelectServerForFork()
561 if (fds[ in SelectServerForFork()
607 struct pollfd fds[TEST_FD_COUNT]; PollServerForFork() local
[all...]
/test/xts/hats/kernel/syscalls/fileio/fcntl/
H A DFcntlApiTest.cpp256 int fds[2]; in HWTEST_F() local
257 int ret = pipe(fds); in HWTEST_F()
260 ret = fcntl(fds[1], F_SETPIPE_SZ, 1024); in HWTEST_F()
262 ret = fcntl(fds[1], F_GETPIPE_SZ); in HWTEST_F()
265 close(fds[0]); in HWTEST_F()
266 close(fds[1]); in HWTEST_F()
/test/xts/acts/communication_lite/lwip_posix/src/
H A DActsLwipTest.cpp419 int fds[TEST_FD_COUNT] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in SelectServerForFork() local
420 fds[0] = srvFd; in SelectServerForFork()
428 if (fds[i] != -1) { in SelectServerForFork()
429 FD_SET(fds[i], &readSet); in SelectServerForFork()
430 if (maxFd < fds[i]) { in SelectServerForFork()
431 maxFd = fds[i]; in SelectServerForFork()
433 printf("[select process]fd info[%d:%d]\n", i, fds[i]); in SelectServerForFork()
454 if (fds[i] == -1) { in SelectServerForFork()
455 fds[i] = cliFd; in SelectServerForFork()
465 if (fds[ in SelectServerForFork()
[all...]
/test/xts/acts/communication_lite/lwip_hal/src/
H A Dlwip_func_test.c354 int fds[TEST_FD_COUNT] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; in SelectServerTask() local
355 fds[0] = srvFd; in SelectServerTask()
365 if (fds[i] != -1) { in SelectServerTask()
366 FD_SET(fds[i], &readSet); in SelectServerTask()
367 if (maxFd < fds[i]) { in SelectServerTask()
368 maxFd = fds[i]; in SelectServerTask()
370 printf("[select process]fd info[%d:%d]\n", i, fds[i]); in SelectServerTask()
393 if (fds[i] == -1) { in SelectServerTask()
394 fds[i] = cliFd; in SelectServerTask()
404 if (fds[ in SelectServerTask()
[all...]
/test/xts/hats/kernel/syscalls/async/ppoll/
H A DPpollApiTest.cpp66 * @tc.desc : Ppoll poll fds successfully.
105 struct pollfd* fds = nullptr; in HWTEST_F() local
110 int retNum = ppoll(fds, 0, &timeout, nullptr); in HWTEST_F()

Completed in 7 milliseconds