test: fd: note when bad cast exception is expected

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2021-06-11 20:49:15 -04:00
Ursprung e4c95d618a
Commit 45afce72e3
+1
Datei anzeigen
@@ -302,6 +302,7 @@ cast(const Fd &fd)
{
auto dp = dynamic_pointer_cast<T>(fd.operator->());
if (!dp) {
cerr << "expect bad cast exception: " << flush;
throw bad_cast();
}
return dp;