merge-script 18d4c43cab
Merge bitcoin/bitcoin#30921: test: generalize HasReason and use it in FailFmtWithError
6c3c619b35cc03e883f9d2b3326f906aedde9ba7 test: generalize HasReason and use it in FailFmtWithError (Lőrinc)

Pull request description:

  Standardized boost exception checking in recent tests introduced in https://github.com/bitcoin/bitcoin/pull/30546#discussion_r1756493521 by extending `HasReason` to accept `const char*` through `string_view` in `operator()`.

  Note that `HasReason` only checks partial matches - but since we're specifying the whole error string, it doesn't affect us in this case.

ACKs for top commit:
  maflcko:
    review ACK 6c3c619b35cc03e883f9d2b3326f906aedde9ba7
  hodlinator:
    ACK 6c3c619b35cc03e883f9d2b3326f906aedde9ba7

Tree-SHA512: 740fb18b8fea78e4eb9740ceb0fe75d37246c28cfa2638b9d093e9514dd6d7926cc5be9ec57f8027cca3aa9d616e8c54322d2401cfa67fd25282f7816e63532d
2024-09-27 10:56:57 +01:00
..
2024-09-26 09:44:04 +01:00
2024-08-29 13:49:57 +02:00
2024-08-29 13:49:57 +02:00
2024-08-06 01:38:10 +02:00
2024-09-17 09:54:18 +02:00
2024-08-06 01:38:10 +02:00
2023-11-16 11:36:22 +10:00
2024-08-04 08:51:36 +02:00
2024-09-12 19:33:46 +02:00
2024-09-17 18:21:23 +02:00
2023-09-13 11:37:45 +01:00
2024-09-20 15:00:19 +01:00
2024-05-20 16:48:19 +00:00
2024-07-08 11:12:01 +02:00
2024-09-10 11:20:40 -03:00
2024-08-29 13:49:57 +02:00
2024-07-08 11:12:01 +02:00
2024-08-29 13:49:57 +02:00
2024-09-19 07:33:02 -04:00
2024-09-19 07:57:45 -04:00
2024-07-08 11:12:01 +02:00
2024-08-29 13:49:57 +02:00
2024-09-06 17:36:18 +02:00
2023-11-16 11:36:22 +10:00
2024-09-17 09:27:45 +02:00