I can think of two possibilities:<br><br>1. The output is slightly different than your regular expression in some invisible way. For example, maybe it&#39;s &quot;arg1: 0\targ2: another&quot;, with a tab in there rather than an explicit space.<br>
<br>2. The output is on stderr, rather than stdout. (I&#39;m not sure if ctest will look at stderr at all.)<br><br>Also, might something else in your CMakeLists.txt be overriding the tests_properties for test4?<br><br>Ceej<br>
aka Chris Hillery<br><br><div class="gmail_quote">On Sun, Feb 7, 2010 at 6:59 AM, AlannY <span dir="ltr">&lt;<a href="mailto:m@alanny.ru">m@alanny.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there. I&#39;m trying to write some tests for my library with CTest.<br>
<br>
I have:<br>
<br>
    add_test (test4 test1 --test4)<br>
    set_tests_properties (test4 PROPERTIES PASS_REGULAR_EXPRESSION &quot;arg1: 0 arg2: another&quot;)<br>
<br>
The output of program is:<br>
<br>
    arg1: 0 arg2: another<br>
<br>
When I&#39;m running &quot;make test&quot;:<br>
<br>
    4/ 54 Testing test4                         ***Failed Required regular expression not found.Regex=[arg1: 0 arg2: another<br>
]<br>
<br>
Where is error? Why is regular expression is not matched?<br>
<br>
Thanks for patience.<br>
<br>
--<br>
   )\._.,--....,&#39;``.<br>
  /,   _.. \   _\  (`._ ,.<br>
 `._.-(,_..&#39;--(,_..&#39;`-.;.&#39;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>