Compliance-Tests icon indicating copy to clipboard operation
Compliance-Tests copied to clipboard

VHDL-2019: Garbage Collection test exhausts all memory to fail

Open bpadalino opened this issue 2 years ago • 1 comments
trafficstars

The garbage collection test (tb_030) requires the exhaustion of all memory to fail. For some simulators, the heap can be set and limited. For others, like ghdl, it doesn't allow this from a command line. It's recommended that the amount of heap is limited via ulimit under linux for this test. For systems with a large amount of memory, this test may pass without garbage collection actually being implemented.

I am unsure how to go about doing this within the simulation framework.

bpadalino avatar Mar 07 '23 18:03 bpadalino

See https://github.com/VHDL/Compliance-Tests/blob/main/run.py#L14-L18. That allows to detect when we are using GHDL and conditionally do check_call(['ulimit', '-m', ...]).

umarcor avatar Mar 07 '23 18:03 umarcor