mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
explain failed launch
This commit is contained in:
committed by
Ryan Fleury
parent
b60f5ec7cb
commit
3ec7ae6746
@@ -66,7 +66,12 @@ internal void t_break_if_debugger_present(void);
|
||||
TEST_(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_outf(...) str8_list_pushf(arena, test_out, ## __VA_ARGS__)
|
||||
|
||||
|
||||
@@ -641,8 +641,11 @@ T_RunSig(dbg_script_runner)
|
||||
|
||||
// launch targets
|
||||
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);
|
||||
T_Ok(t_dbg_launch(cmdl, ENDT_SEC(10)));
|
||||
String8 cmdl = str8f(arena, "--user:%S.raddbg_user %S", t_make_file_path(arena, str8_lit("temp")), directive->args);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user