Skip to content

Commit 0e8bdc7

Browse files
committed
Fix chain test case
1 parent 0527502 commit 0e8bdc7

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

tests/chain.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ bool build_tool_async(const char *bin_path, const char *src_path, const char *sr
8282
nob_cc_flags(&cmd);
8383
nob_cc_output(&cmd, bin_path);
8484
nob_cc_inputs(&cmd, src_path);
85-
return cmd_run(&cmd, .async = &procs);
85+
return cmd_run(
86+
&cmd,
87+
.async = &procs,
88+
// To make sure no output pollutes the test output.
89+
// This is needed specifically for cl.exe cause it has
90+
// a tendency to output compiled source files to stdout.
91+
.stdout_path = temp_sprintf("%s.comp.txt", bin_path),
92+
);
8693
}
8794

8895
int main(void)

tests/chain.win32.stdout.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
hex.c
2-
hello.c
3-
rot13.c
41
55 72 79 79 62 20 67 62 20 66 67 71 72 65 65 0A Uryyb gb fgqree.
52
55 72 79 79 62 20 67 62 20 66 67 71 62 68 67 0A Uryyb gb fgqbhg.
63

0 commit comments

Comments
 (0)