From 1b136e213a78dc2588899909dfdfd5af77fa1e2e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 2 Mar 2025 18:30:01 +0200 Subject: [PATCH] ci: fix vweb_run_at.run.out and vweb_run_at.skip_unused.run.out, ensure stable ordering of stdout/stderr for `v run file.v`, in case of compiling a program with warnings/notices. --- cmd/v/v.v | 2 +- vlib/v/tests/skip_unused/vweb_run_at.run.out | 2 +- vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/v/v.v b/cmd/v/v.v index 578b7914b1..b5930564f3 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -59,13 +59,13 @@ const external_tools = [ const list_of_flags_that_allow_duplicates = ['cc', 'd', 'define', 'cf', 'cflags'] fn main() { + unbuffer_stdout() mut timers_should_print := false $if time_v ? { timers_should_print = true } if '-show-timings' in os.args { timers_should_print = true - unbuffer_stdout() } mut timers := util.new_timers(should_print: timers_should_print, label: 'main') timers.start('v start') diff --git a/vlib/v/tests/skip_unused/vweb_run_at.run.out b/vlib/v/tests/skip_unused/vweb_run_at.run.out index 61c5601ebd..2ff1c72404 100644 --- a/vlib/v/tests/skip_unused/vweb_run_at.run.out +++ b/vlib/v/tests/skip_unused/vweb_run_at.run.out @@ -1,2 +1,2 @@ -done `vweb` has been deprecated. Please use the more stable and fast `veb` instead. +done diff --git a/vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out b/vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out index 61c5601ebd..2ff1c72404 100644 --- a/vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out +++ b/vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out @@ -1,2 +1,2 @@ -done `vweb` has been deprecated. Please use the more stable and fast `veb` instead. +done