| 514 | } |
| 515 | } |
| 516 | int handler_with_desc(bthread_id_t id, void* data, int error_code, |
| 517 | const std::string& error_text) { |
| 518 | EXPECT_EQ(DUMMY_DATA2, data); |
| 519 | EXPECT_EQ(expected_code, error_code); |
| 520 | EXPECT_STREQ(expected_desc, error_text.c_str()); |
| 521 | if (error_code == ESTOP) { |
| 522 | branch_tags[2] = branch_counter; |
| 523 | return bthread_id_unlock_and_destroy(id); |
| 524 | } else { |
| 525 | branch_tags[3] = branch_counter; |
| 526 | return bthread_id_unlock(id); |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | TEST(BthreadIdTest, error_with_descriptions) { |
| 531 | bthread_id_t id1; |
nothing calls this directly
no test coverage detected