Lines Matching refs:eth
1423 ExecTestHelper eth; in TEST() local
1425 ASSERT_EQ(-1, execve("/", eth.GetArgs(), eth.GetEnv())); in TEST()
1438 ExecTestHelper eth; in TEST() local
1439 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1440 eth.Run([&]() { execve(BIN_DIR "echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1443 eth.SetArgs({"printenv", nullptr}); in TEST()
1444 eth.SetEnv({"A=B", nullptr}); in TEST()
1449 eth.Run([&]() { execve(BIN_DIR "printenv", eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
1460 ExecTestHelper eth; in TEST() local
1462 eth.Run([&]() { execl(BIN_DIR "echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n"); in TEST()
1466 ExecTestHelper eth; in TEST() local
1468 ASSERT_EQ(-1, execle("/", "/", nullptr, eth.GetEnv())); in TEST()
1473 ExecTestHelper eth; in TEST() local
1474 eth.SetEnv({"A=B", nullptr}); in TEST()
1480 eth.Run([&]() { execle(BIN_DIR "printenv", "printenv", nullptr, eth.GetEnv()); }, 0, in TEST()
1485 ExecTestHelper eth; in TEST() local
1487 ASSERT_EQ(-1, execv("/", eth.GetArgs())); in TEST()
1492 ExecTestHelper eth; in TEST() local
1493 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1495 eth.Run([&]() { execv(BIN_DIR "echo", eth.GetArgs()); }, 0, "hello world\n"); in TEST()
1505 ExecTestHelper eth; in TEST() local
1507 eth.Run([&]() { execlp("echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n"); in TEST()
1511 ExecTestHelper eth; in TEST() local
1512 eth.SetArgs({nullptr}); in TEST()
1514 ASSERT_EQ(-1, execvp("/", eth.GetArgs())); in TEST()
1519 ExecTestHelper eth; in TEST() local
1520 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1522 eth.Run([&]() { execvp("echo", eth.GetArgs()); }, 0, "hello world\n"); in TEST()
1526 ExecTestHelper eth; in TEST() local
1528 ASSERT_EQ(-1, execvpe("this-does-not-exist", eth.GetArgs(), eth.GetEnv())); in TEST()
1537 ExecTestHelper eth; in TEST() local
1538 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1539 eth.Run([&]() { execvpe("echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1542 eth.SetArgs({"printenv", nullptr}); in TEST()
1543 eth.SetEnv({"A=B", nullptr}); in TEST()
1548 eth.Run([&]() { execvpe("printenv", eth.GetArgs(), eth.GetEnv()); }, 0, expected_output.c_str()); in TEST()
1559 ExecTestHelper eth; in TEST() local
1560 eth.SetArgs({basename(tf.path), nullptr}); in TEST()
1564 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1572 ASSERT_EQ(-1, execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv())); in TEST()
1577 eth.Run([&]() { execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1581 eth.Run([&]() { execvpe(basename(tf.path), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1585 eth.Run([&]() { execvpe(tf.path, eth.GetArgs(), eth.GetEnv()); }, 0, "script\n"); in TEST()
1589 ExecTestHelper eth; in TEST() local
1590 eth.SetArgs({"/system/bin/does-not-exist", nullptr}); in TEST()
1593 ASSERT_EQ(-1, execvp("/system/bin/does-not-exist", eth.GetArgs())); in TEST()
1616 ExecTestHelper eth; in TEST() local
1620 ASSERT_EQ(-1, fexecve(fd, eth.GetArgs(), eth.GetEnv())); in TEST()
1626 ExecTestHelper eth; in TEST() local
1628 ASSERT_EQ(-1, fexecve(-1, eth.GetArgs(), eth.GetEnv())); in TEST()
1636 ExecTestHelper eth; in TEST() local
1637 eth.SetArgs({"echo", "hello", "world", nullptr}); in TEST()
1638 eth.Run([&]() { fexecve(echo_fd, eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n"); in TEST()
1644 eth.SetArgs({"printenv", nullptr}); in TEST()
1645 eth.SetEnv({"A=B", nullptr}); in TEST()
1650 eth.Run([&]() { fexecve(printenv_fd, eth.GetArgs(), eth.GetEnv()); }, 0, expected_output.c_str()); in TEST()