Don't launch exes concurrently because they compete
This commit is contained in:
@@ -97,17 +97,9 @@ int main(int argc, char **argv) {
|
|||||||
// Run exes if there were no errors
|
// Run exes if there were no errors
|
||||||
//
|
//
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
processes.reset();
|
|
||||||
For(exes) {
|
For(exes) {
|
||||||
Process p = RunEx(it);
|
int exit_code = Run(it);
|
||||||
processes.add(p);
|
IO_Printf("%.*s - %d\n", S8_Expand(it), exit_code);
|
||||||
}
|
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
For(processes) {
|
|
||||||
int exit_code = Wait(&it);
|
|
||||||
S8_String name = exes[i++];
|
|
||||||
IO_Printf("%.*s - %d\n", S8_Expand(name), exit_code);
|
|
||||||
if (exit_code != 0) result = exit_code;
|
if (exit_code != 0) result = exit_code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ int main() {
|
|||||||
S8_String work_path = OS_GetWorkingDir(&arena);
|
S8_String work_path = OS_GetWorkingDir(&arena);
|
||||||
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
S8_String abs_path = OS_GetAbsolutePath(&arena, read_file_path);
|
||||||
|
|
||||||
IO_Assert(OS_IsDir(dir_path));
|
IO_Assertf(OS_IsDir(dir_path), "%.*s", S8_Expand(dir_path));
|
||||||
IO_Assert(!OS_IsFile(dir_path));
|
IO_Assert(!OS_IsFile(dir_path));
|
||||||
|
|
||||||
IO_Assert(OS_IsFile(exe_path));
|
IO_Assert(OS_IsFile(exe_path));
|
||||||
|
|||||||
Reference in New Issue
Block a user