Compare commits

..

3 Commits

Author SHA1 Message Date
25ea67399a
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-13 23:21:08 +01:00
c6daf8d690
editor: Add basic loading and saving 2024-03-13 23:21:08 +01:00
7d826df3e4
editor: Add a basic text editor 2024-03-13 23:21:03 +01:00

View File

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