Skip to content
Snippets Groups Projects
Commit 35877ad6 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

avoid warning about extra semicolon

parent ebd16806
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ void checkDataType(std::string const& propertyAddress, int dataType) {
}
#define CHECK_WITH_TIMEOUT(...) \
{ \
do { \
static const size_t nIterations = 10000; \
size_t local_index_i = 0; \
for(; local_index_i < nIterations; ++local_index_i) { \
......@@ -201,7 +201,7 @@ void checkDataType(std::string const& propertyAddress, int dataType) {
usleep(100); \
} \
if(local_index_i == nIterations) BOOST_CHECK(__VA_ARGS__); \
}
} while(false)
template<class T>
void checkWithTimeout(std::function<T()> accessorFunction, T referenceValue, size_t nIterations = 10000,
......
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