mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: rename testcase_leak.v to testcase_leak.vv
This commit is contained in:
parent
2b42ea9883
commit
26c63461f4
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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" ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user