Commit 43c19c49 by Tobias Fuchs

dataflow_cpp: added assertion in unit test

parent 40f144e8
...@@ -158,7 +158,7 @@ void SimpleTest::TestBasic() { ...@@ -158,7 +158,7 @@ void SimpleTest::TestBasic() {
128, // max groups (default: 128) 128, // max groups (default: 128)
// Currently needs to be initialized // Currently needs to be initialized
// with (max_queues + 1), see defect embb449 // with (max_queues + 1), see defect embb449
num_cores + 1, // max queues (default: 16) num_cores, // max queues (default: 16)
1024, // queue capacity (default: 1024) 1024, // queue capacity (default: 1024)
4 // num priorities (default: 4) 4 // num priorities (default: 4)
); );
...@@ -211,8 +211,7 @@ void SimpleTest::TestBasic() { ...@@ -211,8 +211,7 @@ void SimpleTest::TestBasic() {
try { try {
network(); network();
} catch (embb::base::ErrorException & e) { } catch (embb::base::ErrorException & e) {
std::cout << e.What() << std::endl; PT_ASSERT_MSG(false, e.What());
break;
} }
PT_EXPECT(asink.Check()); PT_EXPECT(asink.Check());
......
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 sign in to comment