From 9f6a2427c99c54ab197490feb52f3c73d8bbd0ba Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 15 Feb 2025 21:17:15 +0200 Subject: [PATCH] workaround for `./v -cc gcc -cflags -fsanitize=address,undefined cmd/tools/vcover/cover_test.v` with gcc-13 and gcc-14 on Ubuntu 24.04 --- cmd/tools/vcover/cover_test.v | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cmd/tools/vcover/cover_test.v b/cmd/tools/vcover/cover_test.v index 08feaff6ca833e..5873b273de0e8e 100644 --- a/cmd/tools/vcover/cover_test.v +++ b/cmd/tools/vcover/cover_test.v @@ -4,6 +4,10 @@ const vexe = @VEXE const vroot = os.dir(vexe) const tfolder = os.join_path(os.vtmp_dir(), 'cover_test') +const t1 = np(os.join_path(tfolder, 't1')) +const t2 = np(os.join_path(tfolder, 't2')) +const t3 = np(os.join_path(tfolder, 't3')) + fn testsuite_begin() { os.setenv('VCOLORS', 'never', true) os.chdir(vroot)! @@ -34,13 +38,6 @@ fn np(path string) string { } fn test_simple() { - // if true { - // return - //} - - t1 := np(os.join_path(tfolder, 't1')) - t2 := np(os.join_path(tfolder, 't2')) - t3 := np(os.join_path(tfolder, 't3')) assert !os.exists(t1), t1 assert !os.exists(t2), t2 assert !os.exists(t3), t3