authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-20 07:01:51+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-20 21:39:54+01:00
log253e641ea3ee9f6f1ba14abc5615b861cbc2e347
treef1e7e592aba4ba6f516c2a8b65bbcb13b406c231
parent8e293ea8bd7fb7f6161604e9e4f4c21525d68827

test: Disable packet timeout for debugger tests.

On my machine, the defaults are 5 seconds (LLDB) and 2 seconds (GDB). These are too low on the CI machines during high load, and the CI system itself already enforces a timeout on jobs anyway, so just disable the timeout altogether.

1 files changed, 7 insertions(+), 1 deletions(-)

test/src/Debugger.zig+7-1
......@@ -2391,6 +2391,7 @@ fn addGdbTest(
23912391 "--batch",
23922392 "--command",
23932393 },
2394 "set remotetimeout 0",
23942395 commands,
23952396 &.{
23962397 "--args",
......@@ -2416,6 +2417,7 @@ fn addLldbTest(
24162417 "--batch",
24172418 "--source",
24182419 },
2420 "settings set plugin.process.gdb-remote.packet-timeout 0",
24192421 commands,
24202422 &.{
24212423 "--",
......@@ -2435,6 +2437,7 @@ fn addTest(
24352437 target: Target,
24362438 files: []const File,
24372439 db_argv1: []const []const u8,
2440 db_commands: []const u8,
24382441 commands: []const u8,
24392442 db_argv2: []const []const u8,
24402443 expected_output: []const []const u8,
......@@ -2476,7 +2479,10 @@ fn addTest(
24762479 const commands_wf = db.b.addWriteFiles();
24772480 const run = std.Build.Step.Run.create(db.b, db.b.fmt("run {s} {s}", .{ name, target.test_name_suffix }));
24782481 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 ));
24802486 run.addArgs(db_argv2);
24812487 run.addArtifactArg(exe);
24822488 for (expected_output) |expected| run.addCheck(.{ .expect_stdout_match = db.b.fmt("{s}\n", .{expected}) });