v
v copied to clipboard
asserts always true when the -stats flag is on
Describe the bug
Code: https://play.vlang.io/p/9741f97d05
fn test_stats() {
assert false
}
Reproduction Steps
Expected Behavior
---- Testing... ----------------------------------------------------------------
FAIL 2.025 ms /box/code_test.v
retry: 1
comp_cmd: '/home/admin/v/v' -skip-running -cflags -DGC_MARKERS=1 -no-parallel -no-retry-compilation -g -o '/tmp/v_60000/tsession_14eaeaf32b80_3579681314078418/01HP9ZY5PR6PRDTD8KSEZ6C6KH/code_test' '/box/code_test.v'
run_cmd: '/tmp/v_60000/tsession_14eaeaf32b80_3579681314078418/01HP9ZY5PR6PRDTD8KSEZ6C6KH/code_test'
failure code: 1; foutput.len: 217; failure output:
---------------------------------------------------------------------------------------------------- retry: 0 ; max_retry: 0 ; r.exit_code: 1 ; trimmed_output.len: 50
/box/code_test.v:2: fn test_stats
assert false
--------------------------------------------------------------------------------
Current Behavior
Output:
---- Testing... ----------------------------------------------------------------
--------------------------------------------------------------------------------
V source code size: 25792 lines, 685064 bytes, 228 types, 11 modules, 121 files
generated target code size: 42702 lines, 1529050 bytes
compilation took: 438.064 ms, compilation speed: 58877 vlines/s
OK 444.238 ms /box/code_test.v
--------------------------------------------------------------------------------
Summary for all V _test.v files: 1 passed, 1 total. Elapsed time: 445 ms, on 1 job. Comptime: 0 ms. Runtime: 444 ms.
OK (0.453 sec real, 0.454 sec wall)
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.4 212adfa
Environment details (OS name and version, etc.)
V full version: V 0.4.4 212adfa
OS: linux, Debian GNU/Linux 11 (bullseye) (VM)
Processor: 1 cpus, 64bit, little endian, Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
getwd: /home/admin/playground
vexe: /home/admin/v/v
vexe mtime: 2024-02-10 16:23:23
vroot: OK, value: /home/admin/v
VMODULES: OK, value: .vmodules
VTMP: OK, value: /tmp/v_0
Git version: git version 2.30.2
Git vroot status: Error: fatal: detected dubious ownership in repository at '/home/admin/v'
To add an exception for this directory, call:
git config --global --add safe.directory /home/admin/v
.git/config present: true
CC version: cc (Debian 10.2.1-6) 10.2.1 20210110
thirdparty/tcc status: Error: fatal: detected dubious ownership in repository at '/home/admin/v/thirdparty/tcc'
To add an exception for this directory, call:
git config --global --add safe.directory /home/admin/v/thirdparty/tcc
Error: fatal: detected dubious ownership in repository at '/home/admin/v/thirdparty/tcc'
To add an exception for this directory, call:
git config --global --add safe.directory /home/admin/v/thirdparty/tcc
[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.
I was running into the situation with -stats not containing outputs anymore. Apparently also this issue here is a regression that slipped through in https://github.com/vlang/v/pull/20520