Commit 81c484c8 authored by Davis King's avatar Davis King

Added another BSP test.

parent 2d925f1e
......@@ -400,6 +400,26 @@ namespace
DLIB_TEST(error_occurred == false);
}
// ----------------------------------------------------------------------------------------
void test5_job(
bsp_context& ,
int& val
)
{
val = 25;
}
void dotest5()
{
dlog << LINFO << "start dotest5()";
print_spinner();
std::vector<network_address> hosts;
int val = 0;
bsp_connect(hosts, test5_job, dlib::ref(val));
DLIB_TEST(val == 25);
}
// ----------------------------------------------------------------------------------------
class bsp_tester : public tester
......@@ -423,6 +443,7 @@ namespace
dotest2<2>();
dotest3();
dotest4();
dotest5();
}
}
} a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment