Compare commits

..

4 Commits

Author SHA1 Message Date
fc17399d82
editor: Remove insert mode and use the arrow keys to navigate, plus Ctrl+S to save
All checks were successful
Build and test / build (push) Successful in 2m4s
2024-03-14 12:40:46 +01:00
aae5f21f7f
editor: Add basic loading and saving 2024-03-14 12:40:46 +01:00
d996e3f9f8
editor: Add a basic text editor 2024-03-14 12:40:46 +01:00
eab44307f0
run-tests: Avoid starting a shell to spawn test processes
All checks were successful
Build and test / build (push) Successful in 2m9s
2024-03-14 12:37:59 +01:00

View File

@ -24,7 +24,13 @@ Result<int> luna_main(int argc, char** argv)
for (const auto& program : files)
{
auto command = TRY(String::format("%s/%s"_sv, test_dir.chars(), program.chars()));
int status = system(command.chars());
StringView args[] = { command.view() };
auto pid = TRY(os::Process::spawn(args[0], Slice<StringView> { args, 1 }, false));
int status;
TRY(os::Process::wait(pid, &status));
if (WEXITSTATUS(status) != 0)
{
os::Process::kill(1, SIGQUIT); // Tell init to report a failed test run.