Skip to content

Commit

Permalink
workaround for `./v -cc gcc -cflags -fsanitize=address,undefined cmd/…
Browse files Browse the repository at this point in the history
…tools/vcover/cover_test.v` with gcc-13 and gcc-14 on Ubuntu 24.04
  • Loading branch information
spytheman committed Feb 15, 2025
1 parent 14107ff commit 9f6a242
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cmd/tools/vcover/cover_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f6a242

Please sign in to comment.