Skip to content

Commit 253e641

Browse files
committed
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 parent 8e293ea commit 253e641

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/src/Debugger.zig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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}) });

0 commit comments

Comments
 (0)