Skip to content

Commit 12022be

Browse files
committed
Testfix for set_executor when parallelization is disabled.
1 parent 9601134 commit 12022be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/src/bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ bool sparse(Rcpp::RObject parsed) {
5959
//' @export
6060
//[[Rcpp::export(rng=false)]]
6161
bool test_set_executor() {
62+
#ifdef TEST_CUSTOM_PARALLEL
6263
manticore::Executor test;
6364
tatami_r::set_executor(&test);
6465
if (&(tatami_r::executor()) != &test) {
@@ -69,7 +70,7 @@ bool test_set_executor() {
6970
if (&(tatami_r::executor()) == &test) {
7071
return false;
7172
}
72-
73+
#endif
7374
return true;
7475
}
7576

0 commit comments

Comments
 (0)