소스 검색

Stop executing plugin framework tests on error.

Sascha Zelzer 14 년 전
부모
커밋
c829650fe9
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestMain.cpp

+ 2 - 1
Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestMain.cpp

@@ -54,7 +54,8 @@ public:
     int result = 0;
     foreach(ctkServiceReference ref, refs)
     {
-      result = QTest::qExec(context->getService(ref), argc, argv);
+      result += QTest::qExec(context->getService(ref), argc, argv);
+      if (result > 0) break;
     }
 
     QCoreApplication::exit(result);