Rename C++ header files to .hpp
[lttng-tools.git] / tests / regression / tools / trigger / name / trigger_name.cpp
index 3bb3099ce860659749979250ed9184476fda678b..1e2a676dc4000003eec31a6eccb2736ff5d2c42f 100644 (file)
@@ -15,7 +15,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <lttng/lttng.h>
-#include <common/macros.h>
+#include <common/macros.hpp>
 
 #define TEST_COUNT 70
 
@@ -102,7 +102,14 @@ int unregister_all_triggers(void)
 
                ret = lttng_unregister_trigger(trigger);
                if (ret) {
-                       fail("Failed to unregister trigger: trigger name = '%s'");
+                       const char *name;
+                       enum lttng_trigger_status get_name_status =
+                               lttng_trigger_get_name(trigger, &name);
+                       if (get_name_status == LTTNG_TRIGGER_STATUS_OK) {
+                               fail("Failed to unregister trigger: trigger name = '%s'", name);
+                       } else {
+                               fail("Failed to unregister trigger");
+                       }
                        goto end;
                }
 
@@ -606,7 +613,7 @@ const test_function test_functions[] = {
        double_register_automatic_name_trigger,
 };
 
-int main(int argc, const char **argv)
+int main(void)
 {
        size_t i;
 
This page took 0.024451 seconds and 4 git commands to generate.