case TEST_FAILURE:
return "failed";
- case TEST_MEMORY_ALLOCATION_FAILURE:
- return "memory allocation";
-
case TEST_SKIPPED:
return "skipped";
-
- case TEST_FATAL:
- break;
}
- return "failed";
+ throw fatal_message("No port could be found");
}
} // namespace libtest
+
+
+std::ostream& operator<<(std::ostream& output, const enum test_return_t &arg)
+{
+ output << libtest::test_strerror(arg);
+ return output;
+}
+
+std::ostream& operator<<(std::ostream& output, const std::vector<char> &arg)
+{
+ output << "std::vector<char>:" << arg.size();
+ return output;
+}