Commit cd438ba
committed
tests: guard assign_subblock REQUIRE_THROW on TA_ASSERT_POLICY
The "overriding trange of result block is not allowed" check is enforced by a
TA_ASSERT, so it only throws when TA_ASSERT_POLICY == TA_ASSERT_THROW. Under
the Release default (TA_ASSERT_IGNORE) the assert is a no-op, so
BOOST_REQUIRE_THROW failed with "Exception expected but not raised". Only
expect the throw when assertions actually throw.1 parent 9602d4f commit cd438ba
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
750 | 752 | | |
751 | 753 | | |
752 | 754 | | |
753 | 755 | | |
754 | 756 | | |
755 | 757 | | |
756 | 758 | | |
| 759 | + | |
757 | 760 | | |
758 | 761 | | |
759 | 762 | | |
| |||
0 commit comments