OSDN Git Service

add reslut.xml output
authorbols <bols-blue@lnc.jp>
Fri, 12 Aug 2011 05:21:06 +0000 (14:21 +0900)
committerbols <bols-blue@lnc.jp>
Fri, 12 Aug 2011 05:21:06 +0000 (14:21 +0900)
USB_Keybord_MAX3421E/src/TestMain.cpp

index 9f6bfae..8e8a889 100644 (file)
@@ -24,6 +24,11 @@ int sc_main( int argc, char* argv[] ) {
 
   // テスト結果を標準出力に吐き出す
   CPPUNIT_NS::CompilerOutputter outputter( &result, CPPUNIT_NS::stdCOut() );
+       std::ofstream ofs( "test_result.xml" );
+  CppUnit::Outputter* outputter =
+    new CppUnit::XmlOutputter(&runner.result(),ofs);
+
+  runner.setOutputter(outputter);
   outputter.write();
 
   return 0 ;