Go to the documentation of this file.
54 int main(
int argc,
char **argv) {
56 if (0 == geteuid() && NULL ==
getenv(
"UV_RUN_AS_ROOT")) {
57 fprintf(
stderr,
"The libuv test suite cannot be run as root.\n");
71 fprintf(
stderr,
"Too many arguments.\n");
83 if (strcmp(argv[1],
"--list") == 0) {
88 if (strcmp(argv[1],
"ipc_helper_listen_before_write") == 0) {
92 if (strcmp(argv[1],
"ipc_helper_listen_after_write") == 0) {
96 if (strcmp(argv[1],
"ipc_helper_heavy_traffic_deadlock_bug") == 0) {
100 if (strcmp(argv[1],
"ipc_send_recv_helper") == 0) {
104 if (strcmp(argv[1],
"ipc_helper_tcp_connection") == 0) {
108 if (strcmp(argv[1],
"ipc_helper_closed_handle") == 0) {
112 if (strcmp(argv[1],
"ipc_helper_bind_twice") == 0) {
116 if (strcmp(argv[1],
"ipc_helper_send_zero") == 0) {
120 if (strcmp(argv[1],
"stdio_over_pipes_helper") == 0) {
124 if (strcmp(argv[1],
"spawn_helper1") == 0) {
129 if (strcmp(argv[1],
"spawn_helper2") == 0) {
135 if (strcmp(argv[1],
"spawn_tcp_server_helper") == 0) {
140 if (strcmp(argv[1],
"spawn_helper3") == 0) {
149 if (strcmp(argv[1],
"spawn_helper4") == 0) {
155 if (strcmp(argv[1],
"spawn_helper5") == 0) {
156 const char out[] =
"fourth stdio!\n";
161 WriteFile((HANDLE) _get_osfhandle(3),
out,
sizeof(
out) - 1, &
bytes, NULL);
167 while (
r == -1 && errno == EINTR);
175 if (strcmp(argv[1],
"spawn_helper6") == 0) {
180 r = fprintf(
stdout,
"hello world\n");
183 r = fprintf(
stderr,
"hello errworld\n");
189 if (strcmp(argv[1],
"spawn_helper7") == 0) {
206 if (strcmp(argv[1],
"spawn_helper8") == 0) {
210 ASSERT(
sizeof(fd) ==
read(0, &fd,
sizeof(fd)));
212 # if defined(__PASE__)
222 if (strcmp(argv[1],
"spawn_helper9") == 0) {
229 if (strcmp(argv[1],
"spawn_helper_setuid_setgid") == 0) {
241 if (strcmp(argv[1],
"process_title_big_argv_helper") == 0) {
int ipc_helper_bind_twice(void)
int spawn_tcp_server_helper(void)
int ipc_helper_closed_handle(void)
int run_test_part(const char *test, const char *part)
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
void platform_init(int argc, char **argv)
void print_tests(FILE *stream)
void spawn_stdin_stdout(void)
int ipc_helper(int listen_after_write)
int run_tests(int benchmark_output)
int ipc_helper_tcp_connection(void)
int ipc_helper_send_zero(void)
UV_EXTERN char ** uv_setup_args(int argc, char **argv)
static int maybe_run_test(int argc, char **argv)
UV_EXTERN void uv_sleep(unsigned int msec)
void notify_parent_process(void)
int stdio_over_pipes_helper(void)
void process_title_big_argv(void)
int read(izstream &zs, T *x, Items items)
int main(int argc, char **argv)
int ipc_helper_heavy_traffic_deadlock_bug(void)
int ipc_send_recv_helper(void)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:14