X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fmain.cc;h=967ec71a21f319b1cd5602d262167bd4f7f7d334;hb=23dca174eef8d846e3d4402729b57f6ded035e64;hp=d6c4ecbfa59e82c25cbda5802905c291c0632826;hpb=f93819b4f3a63fed6b6071b7d6a42ff082a5c0c6;p=awesomized%2Flibmemcached diff --git a/libtest/main.cc b/libtest/main.cc index d6c4ecbf..967ec71a 100644 --- a/libtest/main.cc +++ b/libtest/main.cc @@ -34,7 +34,7 @@ * */ -#include +#include "mem_config.h" #include #include @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) return EXIT_SKIP; case TEST_FAILURE: - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "frame->create()" << std::endl; + std::cerr << "frame->create()" << std::endl; return EXIT_FAILURE; } } @@ -340,27 +340,27 @@ int main(int argc, char *argv[]) } catch (libtest::fatal& e) { - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "FATAL:" << e.what() << std::endl; + std::cerr << "FATAL:" << e.what() << std::endl; exit_code= EXIT_FAILURE; } catch (libtest::disconnected& e) { - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "Unhandled disconnection occurred:" << e.what() << std::endl; + std::cerr << "Unhandled disconnection occurred:" << e.what() << std::endl; exit_code= EXIT_FAILURE; } catch (std::exception& e) { - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "std::exception:" << e.what() << std::endl; + std::cerr << "std::exception:" << e.what() << std::endl; exit_code= EXIT_FAILURE; } catch (char const*) { - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "Exception:" << std::endl; + std::cerr << "Exception:" << std::endl; exit_code= EXIT_FAILURE; } catch (...) { - std::cerr << __FILE__ << ":" << __LINE__ << ": " << "Unknown exception halted execution." << std::endl; + std::cerr << "Unknown exception halted execution." << std::endl; exit_code= EXIT_FAILURE; }