Repository: mesos
Updated Branches:
  refs/heads/master f39b39c69 -> 059b8de2e


Added stack traces to the C++ test framework.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/059b8de2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/059b8de2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/059b8de2

Branch: refs/heads/master
Commit: 059b8de2e85ba60410a29548273e3c71e605163d
Parents: f39b39c
Author: Benjamin Mahler <[email protected]>
Authored: Tue Jan 27 17:55:48 2015 -0800
Committer: Benjamin Mahler <[email protected]>
Committed: Tue Jan 27 17:55:48 2015 -0800

----------------------------------------------------------------------
 src/examples/test_framework.cpp | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/059b8de2/src/examples/test_framework.cpp
----------------------------------------------------------------------
diff --git a/src/examples/test_framework.cpp b/src/examples/test_framework.cpp
index e5ec3b9..7c062dc 100644
--- a/src/examples/test_framework.cpp
+++ b/src/examples/test_framework.cpp
@@ -36,6 +36,7 @@
 #include "common/type_utils.hpp"
 
 #include "logging/flags.hpp"
+#include "logging/logging.hpp"
 
 using namespace mesos;
 
@@ -215,6 +216,8 @@ int main(int argc, char** argv)
     exit(1);
   }
 
+  internal::logging::initialize(argv[0], flags, true); // Catch signals.
+
   ExecutorInfo executor;
   executor.mutable_executor_id()->set_value("default");
   executor.mutable_command()->set_value(uri);

Reply via email to