explain failed launch

This commit is contained in:
Nikita Smith
2026-06-02 12:09:53 -07:00
committed by Ryan Fleury
parent b60f5ec7cb
commit 3ec7ae6746
2 changed files with 11 additions and 3 deletions
+6 -1
View File
@@ -66,7 +66,12 @@ internal void t_break_if_debugger_present(void);
TEST_(name) \ TEST_(name) \
T_RunSig(name) T_RunSig(name)
#define T_Ok(c) do { if (!(c)) { result_out->fail_file = __FILE__; result_out->fail_line = __LINE__; result_out->fail_cond = Stringify(c); result_out->status = T_RunStatus_Fail; t_break_if_debugger_present(); return; } } while(0) #define T_Ok(c) do { if (!(c)) { \
*result_out = (T_RunResult){ .fail_file = __FILE__, .fail_line = __LINE__, .fail_cond = Stringify(c) }; \
t_break_if_debugger_present(); \
return; \
} } while(0)
#define T_MatchLinef(out, ...) T_Ok(t_match_linef(out, __VA_ARGS__)) #define T_MatchLinef(out, ...) T_Ok(t_match_linef(out, __VA_ARGS__))
#define t_outf(...) str8_list_pushf(arena, test_out, ## __VA_ARGS__) #define t_outf(...) str8_list_pushf(arena, test_out, ## __VA_ARGS__)
+5 -2
View File
@@ -641,8 +641,11 @@ T_RunSig(dbg_script_runner)
// launch targets // launch targets
for EachNode(directive, T_DbgScriptDirective, script.directives[OperatingSystem_CURRENT][T_DbgScriptDirectiveKind_Launch].first) { for EachNode(directive, T_DbgScriptDirective, script.directives[OperatingSystem_CURRENT][T_DbgScriptDirectiveKind_Launch].first) {
String8 cmdl = str8f(arena, "--user:%S.raddbg_user %S ", t_make_file_path(arena, str8_lit("temp")), directive->args); String8 cmdl = str8f(arena, "--user:%S.raddbg_user %S", t_make_file_path(arena, str8_lit("temp")), directive->args);
T_Ok(t_dbg_launch(cmdl, ENDT_SEC(10))); if ( ! t_dbg_launch(cmdl, ENDT_SEC(10))) {
t_outf("failed to launch debugger with command line \"%S %S\" work dir \"%S\"\n", t_raddbg_path(), cmdl, g_wdir);
T_Ok(0);
}
} }
// debugger is ready, now call script // debugger is ready, now call script