mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-15 21:39:41 -07:00
print out last captured output when a test fails or crashes
This commit is contained in:
1 parent
a645622b10
commit
887ee21d94
7 files changed
+245
-214
No files matched your search
@@ -32,7 +32,7 @@ d2r_rdi_from_dwarf_writer(Arena *arena, DW_Writer *writer)
|
||||
B32 was_pdb_deleted = delete_file_at_path(t_make_file_path(scratch.arena, str8_lit("a.pdb")));
|
||||
Assert(was_pdb_deleted);
|
||||
|
||||
t_invoke_(t_radbin_path(), str8_lit("-rdi a.exe -out:a.rdi"), max_U64, 0, 0);
|
||||
t_invoke(t_radbin_path(), str8_lit("-rdi a.exe -out:a.rdi"), max_U64);
|
||||
Assert(g_last_exit_code == 0);
|
||||
|
||||
String8 raw_rdi = t_read_file(arena, str8_lit("a.rdi"));
|
||||
@@ -275,11 +275,9 @@ TEST(d2r_line_table)
|
||||
|
||||
for EachElement(i, test_table) {
|
||||
for EachIndex(k, test_table[i].line_size) {
|
||||
String8 cmd_line = str8f(arena, "-voff2line -voff:0x%llx a.rdi", test_table[i].voff + k);
|
||||
String8 output = {0};
|
||||
t_invoke_(t_radbin_path(), cmd_line, max_U64, arena, &output);
|
||||
t_invoke_radbin("-voff2line -voff:0x%llx a.rdi", test_table[i].voff + k);
|
||||
T_Ok(g_last_exit_code == 0);
|
||||
T_MatchLinef(&output, "%S:%llu", test_table[i].file->path, test_table[i].ln);
|
||||
T_MatchLinef(&g_output, "%S:%llu", test_table[i].file->path, test_table[i].ln);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user