Lines Matching refs:eth

1347   ExecTestHelper eth;  in TEST()  local
1349 ASSERT_EQ(-1, execve("/", eth.GetArgs(), eth.GetEnv())); in TEST()
1357 ExecTestHelper eth; in TEST() local
1358 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1359 eth.Run([&]() { execve(BIN_DIR "echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1362 eth.SetArgs({"printenv", nullptr}); in TEST()
1363 eth.SetEnv({"A=B", nullptr}); in TEST()
1364 eth.Run([&]() { execve(BIN_DIR "printenv", eth.GetArgs(), eth.GetEnv()); }, 0, "A=B\n"); in TEST()
1374 ExecTestHelper eth; in TEST() local
1376 eth.Run([&]() { execl(BIN_DIR "echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n"); in TEST()
1380 ExecTestHelper eth; in TEST() local
1382 ASSERT_EQ(-1, execle("/", "/", nullptr, eth.GetEnv())); in TEST()
1387 ExecTestHelper eth; in TEST() local
1388 eth.SetEnv({"A=B", nullptr}); in TEST()
1390 eth.Run([&]() { execle(BIN_DIR "printenv", "printenv", nullptr, eth.GetEnv()); }, 0, "A=B\n"); in TEST()
1394 ExecTestHelper eth; in TEST() local
1396 ASSERT_EQ(-1, execv("/", eth.GetArgs())); in TEST()
1401 ExecTestHelper eth; in TEST() local
1402 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1404 eth.Run([&]() { execv(BIN_DIR "echo", eth.GetArgs()); }, 0, "hello world\n"); in TEST()
1414 ExecTestHelper eth; in TEST() local
1416 eth.Run([&]() { execlp("echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n"); in TEST()
1420 ExecTestHelper eth; in TEST() local
1421 eth.SetArgs({nullptr}); in TEST()
1423 ASSERT_EQ(-1, execvp("/", eth.GetArgs())); in TEST()
1428 ExecTestHelper eth; in TEST() local
1429 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1431 eth.Run([&]() { execvp("echo", eth.GetArgs()); }, 0, "hello world\n"); in TEST()
1435 ExecTestHelper eth; in TEST() local
1437 ASSERT_EQ(-1, execvpe("this-does-not-exist", eth.GetArgs(), eth.GetEnv())); in TEST()
1446 ExecTestHelper eth; in TEST() local
1447 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1448 eth.Run([&]() { execvpe("echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1451 eth.SetArgs({"printenv", nullptr}); in TEST()
1452 eth.SetEnv({"A=B", nullptr}); in TEST()
1453 eth.Run([&]() { execvpe("printenv", eth.GetArgs(), eth.GetEnv()); }, 0, "A=B\n"); in TEST()
1464 ExecTestHelper eth; in TEST() local
1465 eth.SetArgs({basename(tf.path), nullptr}); in TEST()
1469 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1477 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1482 eth.Run([&]() { execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1486 eth.Run([&]() { execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1490 eth.Run([&]() { execvpe(tf.path, eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1494 ExecTestHelper eth; in TEST() local
1495 eth.SetArgs({"/system/bin/does-not-exist", nullptr}); in TEST()
1498 ASSERT_EQ(-1, execvp("/system/bin/does-not-exist", eth.GetArgs())); in TEST()
1511 ExecTestHelper eth; in TEST() local
1515 ASSERT_EQ(-1, fexecve(fd, eth.GetArgs(), eth.GetEnv())); in TEST()
1521 ExecTestHelper eth; in TEST() local
1523 ASSERT_EQ(-1, fexecve(-1, eth.GetArgs(), eth.GetEnv())); in TEST()
1531 ExecTestHelper eth; in TEST() local
1532 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1533 eth.Run([&]() { fexecve(echo_fd, eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1539 eth.SetArgs({"printenv", nullptr}); in TEST()
1540 eth.SetEnv({"A=B", nullptr}); in TEST()
1541 eth.Run([&]() { fexecve(printenv_fd, eth.GetArgs(), eth.GetEnv()); }, 0, "A=B\n"); in TEST()