Procházet zdrojové kódy

Added final progress report and safety waits to avoid squashing events.

Sascha Zelzer před 12 roky
rodič
revize
e02b3a9bec

+ 3 - 0
Libs/CommandLineModules/Testing/Cpp/ctkCmdLineModuleFutureTest.cpp

@@ -191,6 +191,9 @@ void ctkCmdLineModuleFutureTester::testStartFinish()
                   << "module.resultReadyAt(1,2)"
                   << "module.resultReadyAt(1)"
 
+                     // final progress report from the module
+                  << "module.progressValueChanged(1000)"
+
                      // <filter-end> progress value and text
                   << "module.progressValueChanged(1001)"
                   << "module.progressTextChanged(Finished successfully.)"

+ 4 - 0
Libs/CommandLineModules/Testing/Modules/TestBed/ctkCmdLineModuleTestBed.cpp

@@ -200,7 +200,11 @@ int main(int argc, char* argv[])
   else
   {
     out << "Normal exit</filter-result>" << endl;
+    sleep_ms(100);
+    out << "<filter-progress>1</filter-progress>" << endl;
+    sleep_ms(100);
     out << "<filter-end><filter-comment>Finished successfully.</filter-comment></filter-end>" << endl;
+    sleep_ms(100);
   }
 
   return exitCode;