[CMake] test executable failing only when run in ctest
Brad King
brad.king at kitware.com
Mon Jan 26 16:59:05 EST 2009
Matthew Leotta wrote:
>
> On Jan 26, 2009, at 3:04 PM, Brad King wrote:
>> add_test(run_xterm xterm)
>>
>> $ ctest -R run_xterm
>>
>> Then run gdb and the test inside the xterm to see if it fails. It could
>> be an environment difference.
>>
>> -Brad
>>
>
> It runs fine from within xterm when xterm is launched as a test by
> ctest. I suppose this means that the environment setup by ctest is not
> the culprit. Any other suggestions?
It is also possible that the shell xterm starts changes the environment
back. Try "xterm -e gdb" to run gdb directly in the terminal.
Otherwise, there is always "printf"-style debugging :(
-Brad
More information about the CMake
mailing list