If we want to unit test something that needs to run Rodos like EdacVariable which uses a Rodos semaphore, we cannot use Catch2 out of the box. We need to use Catch2 with a custom main(). This should be possible since Rodos allows users to provide their own main function. More precisely, the main() from Rodos calls MAIN() which can be user provided. Unfortunately, this MAIN() does not get the argc, argv arguments which Catch2 needs. This means we have to hack Rodos a bit more to change that.
Description
If we want to unit test something that needs to run Rodos like
EdacVariable
which uses a Rodos semaphore, we cannot use Catch2 out of the box. We need to use Catch2 with a custommain()
. This should be possible since Rodos allows users to provide their own main function. More precisely, themain()
from Rodos callsMAIN()
which can be user provided. Unfortunately, thisMAIN()
does not get theargc
,argv
arguments which Catch2 needs. This means we have to hack Rodos a bit more to change that.