Use a test fixture instead. This gets rid of some boilerplate and allows to avoid repeating preprocessor checks.