Lines Matching refs:spawnProcess

284 Pid spawnProcess(in char[][] args,
299 Pid spawnProcess(in char[][] args,
305 return spawnProcess(args,
315 Pid spawnProcess(in char[] program,
324 return spawnProcess((&program)[0 .. 1],
329 Pid spawnProcess(in char[] program,
335 return spawnProcess((&program)[0 .. 1], env, config, workDir);
953 assert(wait(spawnProcess(prog.path)) == 1);
954 assert(wait(spawnProcess([prog.path])) == 1);
955 assert(wait(spawnProcess([prog.path, "foo"])) == 2);
956 assert(wait(spawnProcess([prog.path, "foo", "baz"])) == 2);
957 assert(wait(spawnProcess([prog.path, "foo", "bar"])) == 0);
1058 assert(wait(spawnProcess(envProg.path)) == 0);
1059 assert(wait(spawnProcess(envProg.path, null, Config.newEnv)) == 0);
1062 assert(wait(spawnProcess(envProg.path)) == 1);
1063 assert(wait(spawnProcess(envProg.path, null, Config.newEnv)) == 0);
1066 assert(wait(spawnProcess(envProg.path, env)) == 3);
1067 assert(wait(spawnProcess(envProg.path, env, Config.newEnv)) == 2);
1070 assert(wait(spawnProcess(envProg.path, env)) == 6);
1071 assert(wait(spawnProcess(envProg.path, env, Config.newEnv)) == 6);
1074 assert(wait(spawnProcess(envProg.path, env)) == 6);
1075 assert(wait(spawnProcess(envProg.path, env, Config.newEnv)) == 6);
1097 auto pid = spawnProcess([prog.path, "foo", "bar"],
1118 auto pid = spawnProcess([prog.path, "bar", "baz" ], filei, fileo, filee, null, config);
1140 assertThrown!ProcessException(spawnProcess("ewrgiuhrifuheiohnmnvqweoijwf"));
1141 assertThrown!ProcessException(spawnProcess("./rgiuhrifuheiohnmnvqweoijwf"));
1142 …assertThrown!ProcessException(spawnProcess("ewrgiuhrifuheiohnmnvqweoijwf", null, Config.detached));
1143 …assertThrown!ProcessException(spawnProcess("./rgiuhrifuheiohnmnvqweoijwf", null, Config.detached));
1155 assertThrown!ProcessException(spawnProcess(deleteme));
1156 assertThrown!ProcessException(spawnProcess(deleteme, null, Config.detached));
1169 auto pid = spawnProcess([prog.path], null, Config.none, directory);
1180 assertThrown!ProcessException(spawnProcess([prog.path], null, Config.none, directory));
1181 assertThrown!ProcessException(spawnProcess([prog.path], null, Config.detached, directory));
1185 assertThrown!ProcessException(spawnProcess([prog.path], null, Config.none, directory));
1186 assertThrown!ProcessException(spawnProcess([prog.path], null, Config.detached, directory));
1198 … assertThrown!ProcessException(spawnProcess(prog.path, null, Config.none, directoryNoSearch));
1199 … assertThrown!ProcessException(spawnProcess(prog.path, null, Config.detached, directoryNoSearch));
1210 spawnProcess([prog.path], null, Config.none, directory).wait();
1245 spawnProcess(["cmd", "/c", "echo BBBBB"], std.stdio.stdin, f).wait();
1659 assert(wait(spawnProcess([prog.path, "0"])) == 0);
1660 assert(wait(spawnProcess([prog.path, "123"])) == 123);
1661 auto pid = spawnProcess([prog.path, "10"]);
1825 auto pid = spawnProcess(prog.path);
1836 pid = spawnProcess(prog.path);
1854 auto pid = spawnProcess([prog.path], null, Config.detached);
2097 return pipeProcessImpl!spawnProcess(args, redirect, env, config, workDir);
2108 return pipeProcessImpl!spawnProcess(program, redirect, env, config, workDir);