You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I noticed that a vunit testcase in a VHDL testbench will always fail if the name of it ends with a Whitespace. I attached a minimal example including a simple run.py script and a minimal testbench with two testcases. I tested this on two separate windows machines and got the same results on both pcs. Is this a bug in vunit or is something else wrong here?
fromvunitimportVUnit# Create VUnit instance by parsing command line argumentsvu=VUnit.from_argv()
# Create library 'lib'lib=vu.add_library("lib")
# Add all files ending in .vhd in current working directory to librarylib.add_source_files("*.vhd")
# Run vunit functionvu.main()
library vunit_lib;
context vunit_lib.vunit_context;
entitytb_Testisgeneric (runner_cfg : string);
endentity;
architecturetboftb_Testisbeginmain : processbegin
test_runner_setup(runner, runner_cfg);
while test_suite loopif run("Test Fail ") then-- This Testcase fails because the name of the -- Testcase ends in a whitespaceelsif run("Test Pass") then-- This Testcase is successfull-- Note: There is no whitespace at the endendif;
endloop;
test_runner_cleanup(runner); -- Simulation ends hereendprocess;
endarchitecture;
The text was updated successfully, but these errors were encountered:
PossenigM
changed the title
VUnit testcases fail if the last character in a testcase name is a whitespace
VUnit testcases fail if the last character in a testcase name is a whitespace (VHDL)
Apr 17, 2024
Recently I noticed that a vunit testcase in a VHDL testbench will always fail if the name of it ends with a Whitespace. I attached a minimal example including a simple run.py script and a minimal testbench with two testcases. I tested this on two separate windows machines and got the same results on both pcs. Is this a bug in vunit or is something else wrong here?
MinimalExample.zip
The text was updated successfully, but these errors were encountered: