Home | History | Annotate | Download | only in tests

Lines Matching full:eth

1213   ExecTestHelper eth;
1215 ASSERT_EQ(-1, execve("/", eth.GetArgs(), eth.GetEnv()));
1223 ExecTestHelper eth;
1224 eth.SetArgs({"echo", "hello", "world", nullptr});
1225 eth.Run([&]() { execve(BIN_DIR "echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n");
1228 eth.SetArgs({"printenv", nullptr});
1229 eth.SetEnv({"A=B", nullptr});
1230 eth.Run([&]() { execve(BIN_DIR "printenv", eth.GetArgs(), eth.GetEnv()); }, 0, "A=B\n");
1240 ExecTestHelper eth;
1242 eth.Run([&]() { execl(BIN_DIR "echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n");
1246 ExecTestHelper eth;
1248 ASSERT_EQ(-1, execle("/", "/", nullptr, eth.GetEnv()));
1253 ExecTestHelper eth;
1254 eth.SetEnv({"A=B", nullptr});
1256 eth.Run([&]() { execle(BIN_DIR "printenv", "printenv", nullptr, eth.GetEnv()); }, 0, "A=B\n");
1260 ExecTestHelper eth;
1262 ASSERT_EQ(-1, execv("/", eth.GetArgs()));
1267 ExecTestHelper eth;
1268 eth.SetArgs({"echo", "hello", "world", nullptr});
1270 eth.Run([&]() { execv(BIN_DIR "echo", eth.GetArgs()); }, 0, "hello world\n");
1280 ExecTestHelper eth;
1282 eth.Run([&]() { execlp("echo", "echo", "hello", "world", nullptr); }, 0, "hello world\n");
1286 ExecTestHelper eth;
1287 eth.SetArgs({nullptr});
1289 ASSERT_EQ(-1, execvp("/", eth.GetArgs()));
1294 ExecTestHelper eth;
1295 eth.SetArgs({"echo", "hello", "world", nullptr});
1297 eth.Run([&]() { execvp("echo", eth.GetArgs()); }, 0, "hello world\n");
1301 ExecTestHelper eth;
1303 ASSERT_EQ(-1, execvpe("this-does-not-exist", eth.GetArgs(), eth.GetEnv()));
1312 ExecTestHelper eth;
1313 eth.SetArgs({"echo", "hello", "world", nullptr});
1314 eth.Run([&]() { execvpe("echo", eth.GetArgs(), eth.GetEnv()); }, 0, "hello world\n");
1317 eth.SetArgs({"printenv", nullptr});
1318 eth.SetEnv({"A=B", nullptr});
1319 eth.Run([&]() { execvpe("printenv", eth.GetArgs(), eth.GetEnv()); }, 0, "A=B\n");
1330 ExecTestHelper eth;
1331 eth.SetArgs({basename(tf.filename), nullptr});
1335 ASSERT_EQ(-1, execvpe(basename(tf.filename), eth.GetArgs(), eth.GetEnv()));
1343 ASSERT_EQ(-1, execvpe(basename(tf.filename), eth.GetArgs(), eth.GetEnv()));
1348 eth.Run([&]() { execvpe(basename(tf.filename), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n");
1352 eth.Run([&]() { execvpe(basename(tf.filename), eth.GetArgs(), eth.GetEnv()); }, 0, "script\n");
1356 eth.Run([&]() { execvpe(tf.filename, eth.GetArgs(), eth.GetEnv()); }, 0, "script\n");
1360 ExecTestHelper eth;
1361 eth.SetArgs({"/system/bin/does-not-exist", nullptr});
1364 ASSERT_EQ(-1, execvp("/system/bin/does-not-exist", eth.GetArgs()));