| ... | ... | @@ -2391,6 +2391,7 @@ fn addGdbTest( |
| 2391 | 2391 | "--batch", |
| 2392 | 2392 | "--command", |
| 2393 | 2393 | }, |
| 2394 | "set remotetimeout 0", |
| 2394 | 2395 | commands, |
| 2395 | 2396 | &.{ |
| 2396 | 2397 | "--args", |
| ... | ... | @@ -2416,6 +2417,7 @@ fn addLldbTest( |
| 2416 | 2417 | "--batch", |
| 2417 | 2418 | "--source", |
| 2418 | 2419 | }, |
| 2420 | "settings set plugin.process.gdb-remote.packet-timeout 0", |
| 2419 | 2421 | commands, |
| 2420 | 2422 | &.{ |
| 2421 | 2423 | "--", |
| ... | ... | @@ -2435,6 +2437,7 @@ fn addTest( |
| 2435 | 2437 | target: Target, |
| 2436 | 2438 | files: []const File, |
| 2437 | 2439 | db_argv1: []const []const u8, |
| 2440 | db_commands: []const u8, |
| 2438 | 2441 | commands: []const u8, |
| 2439 | 2442 | db_argv2: []const []const u8, |
| 2440 | 2443 | expected_output: []const []const u8, |
| ... | ... | @@ -2476,7 +2479,10 @@ fn addTest( |
| 2476 | 2479 | const commands_wf = db.b.addWriteFiles(); |
| 2477 | 2480 | const run = std.Build.Step.Run.create(db.b, db.b.fmt("run {s} {s}", .{ name, target.test_name_suffix })); |
| 2478 | 2481 | run.addArgs(db_argv1); |
| 2479 | | run.addFileArg(commands_wf.add(db.b.fmt("{s}.cmd", .{name}), db.b.fmt("{s}\n\nquit {d}\n", .{ commands, success }))); |
| 2482 | run.addFileArg(commands_wf.add( |
| 2483 | db.b.fmt("{s}.cmd", .{name}), |
| 2484 | db.b.fmt("{s}\n\n{s}\n\nquit {d}\n", .{ db_commands, commands, success }), |
| 2485 | )); |
| 2480 | 2486 | run.addArgs(db_argv2); |
| 2481 | 2487 | run.addArtifactArg(exe); |
| 2482 | 2488 | for (expected_output) |expected| run.addCheck(.{ .expect_stdout_match = db.b.fmt("{s}\n", .{expected}) }); |