From 8da42bfc85fc4aff277a76e858504f28236e6bca Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 30 Apr 2022 13:49:36 +0300 Subject: [PATCH] tests: fix `./v -W build-tools` CI failure --- cmd/tools/modules/testing/common.v | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index 9ac7d6f913..c64afc739e 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -376,7 +376,9 @@ fn worker_trunner(mut p pool.PoolProcessor, idx int, thread_id int) voidptr { } if details.flaky && !testing.fail_flaky { ts.append_message(.info, ' *FAILURE* of the known flaky test file $relative_file is ignored, since VTEST_FAIL_FLAKY is 0 . Retry count: $details.retry .') - goto test_passed_system + unsafe { + goto test_passed_system + } } ts.failed = true ts.benchmark.fail() @@ -416,7 +418,9 @@ fn worker_trunner(mut p pool.PoolProcessor, idx int, thread_id int) voidptr { } if details.flaky && !testing.fail_flaky { ts.append_message(.info, ' *FAILURE* of the known flaky test file $relative_file is ignored, since VTEST_FAIL_FLAKY is 0 . Retry count: $details.retry .') - goto test_passed_system + unsafe { + goto test_passed_execute + } } ts.failed = true ts.benchmark.fail()