* subversion/tests/svn_test_main.c
(svn_test_main): Add a safety net ensuring APR_HAS_THREADS-less builds
would fail, rather than pass silently, if they tried to take the
"Run tests concurrently" codepath (which try would be a bug).
Review by: hartmannathan
@@ -1089,9 +1089,9 @@ svn_test_main(int argc, const char *argv[], int max_threads,
svn_pool_clear(cleanup_pool);
}
}
-#if APR_HAS_THREADS
else
{
+#if APR_HAS_THREADS
got_error = do_tests_concurrently(opts.prog_name, test_funcs,
array_size, max_threads,
&opts, test_pool);
@@ -1099,9 +1099,12 @@ svn_test_main(int argc, const char *argv[], int max_threads,
/* Execute all cleanups */
svn_pool_clear(test_pool);
svn_pool_clear(cleanup_pool);
- }
+#else
+ /* Can't happen */
+ SVN_ERR_MALFUNCTION();
#endif
}
+ }
/* Clean up APR */
svn_pool_destroy(pool); /* takes test_pool with it */
