[cmake-developers] Simple test case needed that follows exactly how ctest sets up stdout DONE

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu May 23 16:35:41 EDT 2013


On 2013-05-23 14:32-0400 Brad King wrote:

> On 05/23/2013 02:05 PM, Alan W. Irwin wrote:
>> Would somebody be willing to give me a hand with implementing that
>> test case? All that needs to be done is to collect the relevant code
>> for setting up stdout from ctest.cxx
>
> CTest starts with a call to cmSystemTools::DoNotInheritStdPipes:
>
> http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/ctest.cxx;hb=v2.8.10.2#l266
>
> implemented here:
>
> http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmSystemTools.cxx;hb=v2.8.10.2#l2121
>
> by these commits:
>
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f262298b
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9c3ffe24

@Brad: Thanks for your help! Those hints gave me all I needed to
implement a simple test code consisting of 41 lines (mostly from
DoNotInheritStdPipes) that builds (using MinGW/MSYS) and which works
perfectly for wine-1.5.19 but which demonstrates the bash.exe
redirection issue for wine-1.5.30.  (I have attached that test code
for those here who want to test for this redirection issue for the
wine version of Windows).

@Dave: In answer to your question about why I wanted to implement this
simple test case, simple demonstrations of bugs are always better.
Using code like what is attached to demonstrate the wine regression
makes it easier for wine developers to work on this bug since they may
not want to take the time to dig around in ctest source to see what
Windows library calls are triggering the wine bug.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cxx.gz
Type: application/octet-stream
Size: 482 bytes
Desc: compressed simple test code which demonstrates the wine redirection issue
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130523/ed27d25a/attachment-0002.obj>


More information about the cmake-developers mailing list