projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: erroneous specifier used with ERR_FMT macro
[lttng-tools.git]
/
tests
/
regression
/
tools
/
trigger
/
utils
/
notification-client.cpp
diff --git
a/tests/regression/tools/trigger/utils/notification-client.cpp
b/tests/regression/tools/trigger/utils/notification-client.cpp
index f733821588a63995846cb709e7e903ab2ac8cf25..27bd100c694fbd567e8a5b6e055b317f583b3c53 100644
(file)
--- a/
tests/regression/tools/trigger/utils/notification-client.cpp
+++ b/
tests/regression/tools/trigger/utils/notification-client.cpp
@@
-7,6
+7,8
@@
#include "utils.h"
#include "utils.h"
+#include <common/error.hpp>
+
#include <lttng/action/list-internal.hpp>
#include <lttng/condition/event-rule-matches.h>
#include <lttng/lttng.h>
#include <lttng/action/list-internal.hpp>
#include <lttng/condition/event-rule-matches.h>
#include <lttng/lttng.h>
@@
-81,7
+83,7
@@
end:
return names_match;
}
return names_match;
}
-
int
main(int argc, char **argv)
+
static int _
main(int argc, char **argv)
{
int ret;
int option;
{
int ret;
int option;
@@
-279,3
+281,13
@@
end:
free(expected_trigger_name);
return !!ret;
}
free(expected_trigger_name);
return !!ret;
}
+
+int main(int argc, char **argv)
+{
+ try {
+ return _main(argc, argv);
+ } catch (const std::exception& e) {
+ ERR_FMT("Unhandled exception caught by notification client: {}", e.what());
+ abort();
+ }
+}
This page took
0.028426 seconds
and
4
git commands to generate.