Commit 083bdb08 authored by niklas.baumgarten's avatar niklas.baumgarten

updated TestParallelization

parent d9682ea5
Pipeline #121490 passed with stages
in 12 minutes and 22 seconds
......@@ -3,7 +3,7 @@
TEST(TestParallel, TestIsInitialized) {
EXPECT_TRUE(PPM->isInitialized());
EXPECT_TRUE(PPM->IsInitialized());
}
TEST(TestParallel, TestBroadcastDouble) {
......@@ -159,13 +159,22 @@ TEST(TestParallel, TestDoubleSplit) {
}
TEST(TestParallel, TestExchangeBuffer) {
// ExchangeBuffer exBuffer;
// short mSend = 1;
// exBuffer.Send(1) << mSend;
// exBuffer.Communicate();
// short mRecv;
// exBuffer.Receive(1) >> mRecv;
// EXPECT_EQ(mSend, mRecv);
ExchangeBuffer exBuffer;
std::string mSend = "message";
std::string mRecv;
for (int q = 0; q < PPM->Size(); q++) {
exBuffer.Send(q) << mSend;
exBuffer.Communicate();
if (q+1 != PPM->Size())
exBuffer.Receive(q) >> mRecv;
else
exBuffer.Receive(q) >> mRecv;
}
EXPECT_EQ(mSend, mRecv);
}
......
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