generate_test_runner.rb does not currently take into account #ifdefs and the like. If you have written a test which targets a specific platform, for example, the build will fail when building on another platform because the runner generates the function declarations anyways.
A working fix could be for the user set environment variables that match the preprocessor definitions, and have generate_test_runner.rb parse #ifdefs/#ifndefs and only generate runner code for the functions that match the conditional. This behavior should probably be enabled via a CLI argument.
generate_test_runner.rbdoes not currently take into account#ifdefsand the like. If you have written a test which targets a specific platform, for example, the build will fail when building on another platform because the runner generates the function declarations anyways.A working fix could be for the user set environment variables that match the preprocessor definitions, and have
generate_test_runner.rbparse#ifdefs/#ifndefsand only generate runner code for the functions that match the conditional. This behavior should probably be enabled via a CLI argument.