This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If a new line character is written to standard output during the execution of a cppunit test, then that test will not be presented in the test results window in netbeans ide. The console output for the cppunit test is as expected. a simple example test method that will display issue for me: void MyTestClass::testMethod() { std::cout << std::endl; CPPUNIT_ASSERT(FALSE); }
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c1d30c294a6b User: Ilia Gromov <ilia@netbeans.org> Log: Fixing Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out
Also we can provide a custom TestListener which is now BriefTestProgressListener
The provided fix solves the problem with not displayed tests in "test results" window. However, the displayed test name may be corrupted, I will try to fix this issue.
Integrated into 'main-silver', will be available in build *201509150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f359046e5183 User: Ilia Gromov <ilia@netbeans.org> Log: Fixing Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out - Exception
Created attachment 156346 [details] Suggested patch to fix the "corrupted display name" problem Suggested patch to fix the "corrupted display name" problem
Additional fix: http://hg.netbeans.org/cnd-main/rev/6aec4870f9e2
Integrated into 'main-silver', will be available in build *201509230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6aec4870f9e2 User: Ilia Gromov <ilia@netbeans.org> Log: Additional fix for Bug #246649 - cppunit tests dont complete in test results window if new line written to standard out