[CMake] random BAD_COMMAND error on ctest
BILODEAU Andre
andre.bilodeau at safran-engineering.com
Wed Jan 16 05:18:58 EST 2013
Hello
I have finally the simplest setup which reproduces random BAD_COMMAND errors:
- no compilations or produced binaries, justs tests
- tests are called without arguments or set properties
There are 20 tests, all of the form
add_test (test_02 ${CMAKE_CURRENT_SOURCE_DIR}/test_driver)
All tests call the same trivial test driver, with grep called as a sub-process:
-------------
#!/bin/sh
SRCDIR="../../test"
########################################
# Run simple grep command
grep dummy ${SRCDIR}/CMakeLists.txt
exit 0
-------------
The project files are provided as attachment. I ran the following commands from the buid directory:
cmake ../test
make
make test
Running make test over and over produces randomly (average of about 1 test over 20) some lines of the form
16/20 Test #16: test_16 ..........................***Not Run 0.44 sec
Start 17: test_17
The test finally being reported as failed, when there is no reason for that.
If the driver is further simplified by removing the grep command, no test fails.
Computer: : Intel Core 2 Duo CPU E7500 @ 2.93GHz
System: : Windows XP Professional Version 2002 SP 3
Cygwin version: CYGWIN_NT-5.1 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin
cmake version: 2.8.10.2
My conclusion is that there is a process management problem with ctest. As a consequence, this version of cmake can't be used for tests involving any sub-process.
Can this be submitted as a bug report ? If so, what is the procedure ?
André Bilodeau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130116/6ea3c406/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dummy.zip
Type: application/x-zip-compressed
Size: 936 bytes
Desc: dummy.zip
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130116/6ea3c406/attachment-0001.bin>
More information about the CMake
mailing list