mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
test harness: actually run the stage1 "run" tests
This commit is contained in:
parent
c30edd78f9
commit
7d8b90b905
@ -1294,6 +1294,8 @@ pub const TestContext = struct {
|
||||
|
||||
if (case.is_test) {
|
||||
try zig_args.append("test");
|
||||
} else if (update.case == .Execution) {
|
||||
try zig_args.append("run");
|
||||
} else switch (case.output_mode) {
|
||||
.Obj => try zig_args.append("build-obj"),
|
||||
.Exe => try zig_args.append("build-exe"),
|
||||
@ -1402,6 +1404,7 @@ pub const TestContext = struct {
|
||||
switch (result.term) {
|
||||
.Exited => |code| {
|
||||
if (code != 0) {
|
||||
std.debug.print("{s}", .{result.stderr});
|
||||
dumpArgs(zig_args.items);
|
||||
return error.CompilationFailed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user