From 4f160b00e831c37a9b2a90432e6112d934b4c5c2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 10 Nov 2024 13:55:46 +0200 Subject: [PATCH] ci: fix spurious failures for printing_struct_with_thread_field.vv on windows --- vlib/v/slow_tests/inout/printing_struct_with_thread_field.out | 1 + vlib/v/slow_tests/inout/printing_struct_with_thread_field.vv | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vlib/v/slow_tests/inout/printing_struct_with_thread_field.out b/vlib/v/slow_tests/inout/printing_struct_with_thread_field.out index 89e5d7248..dd1df1615 100644 --- a/vlib/v/slow_tests/inout/printing_struct_with_thread_field.out +++ b/vlib/v/slow_tests/inout/printing_struct_with_thread_field.out @@ -1,3 +1,4 @@ +Failed to extract frames: os.execute() cmd output Video{ path: '/path/to/some/mp4' tmp_dir: '/tmp' diff --git a/vlib/v/slow_tests/inout/printing_struct_with_thread_field.vv b/vlib/v/slow_tests/inout/printing_struct_with_thread_field.vv index 158f396b9..8187eae00 100644 --- a/vlib/v/slow_tests/inout/printing_struct_with_thread_field.vv +++ b/vlib/v/slow_tests/inout/printing_struct_with_thread_field.vv @@ -29,7 +29,7 @@ fn (video Video) extract_frames() string { return 'Failed to extract frames: os.execute() cmd output' } // do something else - return '' + return '1234' } fn main() { @@ -38,5 +38,7 @@ fn main() { tmp_dir: '/tmp' } video.extract_frames_thread = spawn video.extract_frames() + println(video.extract_frames_thread.wait()) println(video) + flush_stdout() } -- 2.39.5