diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c377462845..af6a6ed6d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,17 +159,17 @@ jobs: run: ./v -gc boehm -silent test-self - name: Test leak detector run: | - ./v -gc boehm_leak -o testcase_leak vlib/v/tests/testcase_leak.v + ./v -gc boehm_leak -o testcase_leak vlib/v/tests/testcase_leak.vv ./testcase_leak 2>leaks.txt grep "Found 1 leaked object" leaks.txt && grep ", sz=1000," leaks.txt - name: Test leak detector not being active for `-gc boehm` run: | - ./v -gc boehm -o testcase_leak vlib/v/tests/testcase_leak.v + ./v -gc boehm -o testcase_leak vlib/v/tests/testcase_leak.vv ./testcase_leak 2>leaks.txt [ "$(stat -c %s leaks.txt)" = "0" ] - name: Test leak detector not being active for normal compile run: | - ./v -o testcase_leak vlib/v/tests/testcase_leak.v + ./v -o testcase_leak vlib/v/tests/testcase_leak.vv ./testcase_leak 2>leaks.txt [ "$(stat -c %s leaks.txt)" = "0" ] diff --git a/vlib/v/tests/testcase_leak.v b/vlib/v/tests/testcase_leak.vv similarity index 100% rename from vlib/v/tests/testcase_leak.v rename to vlib/v/tests/testcase_leak.vv