Skip to content
Snippets Groups Projects
Commit 4400d57a authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: portable sleep (using openthreads), finish test migration

parent 547de2a4
No related branches found
No related tags found
No related merge requests found
...@@ -800,7 +800,7 @@ ADD_TEST(ioTvImageReaderWriterRgbJPEG2TIF ${IO_TESTS7} ...@@ -800,7 +800,7 @@ ADD_TEST(ioTvImageReaderWriterRgbJPEG2TIF ${IO_TESTS7}
IF( OTB_USE_CURL ) IF( OTB_USE_CURL )
ADD_TEST(coTvCoordinateToNameTest ${PROJECTIONS_TESTS3} ADD_TEST(coTvCoordinateToNameTest ${IO_TESTS8}
--compare-ascii ${NOTOL} --compare-ascii ${NOTOL}
${BASELINE}/CoordinateToNameTest.txt ${BASELINE}/CoordinateToNameTest.txt
${TEMP}/CoordinateToNameTest.txt ${TEMP}/CoordinateToNameTest.txt
...@@ -810,7 +810,7 @@ ADD_TEST(coTvCoordinateToNameTest ${PROJECTIONS_TESTS3} ...@@ -810,7 +810,7 @@ ADD_TEST(coTvCoordinateToNameTest ${PROJECTIONS_TESTS3}
) )
#this test intentionaly uses the same baseline as the previous one #this test intentionaly uses the same baseline as the previous one
ADD_TEST(coTvCoordinateToNameMultithreadTest ${PROJECTIONS_TESTS3} ADD_TEST(coTvCoordinateToNameMultithreadTest ${IO_TESTS8}
--compare-ascii ${NOTOL} --compare-ascii ${NOTOL}
${BASELINE}/CoordinateToNameTest.txt ${BASELINE}/CoordinateToNameTest.txt
${TEMP}/CoordinateToNameMultithreadTest.txt ${TEMP}/CoordinateToNameMultithreadTest.txt
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <fstream> #include <fstream>
#include <cstdlib> #include <cstdlib>
#include <OpenThreads/Thread>
#include "otbCoordinateToName.h" #include "otbCoordinateToName.h"
...@@ -45,7 +46,7 @@ int otbCoordinateToNameTest( int argc, char* argv[] ) ...@@ -45,7 +46,7 @@ int otbCoordinateToNameTest( int argc, char* argv[] )
{ {
conv->MultithreadOn(); conv->MultithreadOn();
conv->Evaluate(); conv->Evaluate();
sleep(10);//Make sure that the web request has the time to complete OpenThreads::Thread::microSleep(10000000);//Make sure that the web request has the time to complete
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment