cleanup from merge of updates from libgearman's libtest.
[m6w6/libmemcached] / libtest / strerror.cc
index e4f0cf5089bc6e6af3f860b1dd5a14586c61a002..d081bafcd2d433af39afedb4d1ee399e5d16df32 100644 (file)
@@ -32,17 +32,11 @@ const char *test_strerror(test_return_t code)
   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