From: Nils Carlson Date: Thu, 24 Feb 2011 08:54:28 +0000 (+0100) Subject: tests: Add a comment in libustctl function tests X-Git-Tag: v1.9.1~442 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bc549f166d7ece1bfd6d1a937019a7568b38b332;p=lttng-ust.git tests: Add a comment in libustctl function tests Add a comment regarding activation of non-existent markers and fix a trailing whitespace. Signed-off-by: Nils Carlson --- diff --git a/tests/libustctl_function_tests/libustctl_function_tests.c b/tests/libustctl_function_tests/libustctl_function_tests.c index 7c12695a..14619971 100644 --- a/tests/libustctl_function_tests/libustctl_function_tests.c +++ b/tests/libustctl_function_tests/libustctl_function_tests.c @@ -137,6 +137,10 @@ static void ustctl_function_tests(pid_t pid) tap_ok(!ustctl_destroy_trace(trace, pid), "ustctl_destroy_trace - without ever starting"); + /* + * Activate a non-existent marker, this should be possible as the marker + * can be loaded at a later time. + */ tap_ok(ustctl_set_marker_state(trace, "ustl", "blar", 1, pid) == 0, "Enable non-existent marker ustl blar"); @@ -145,7 +149,7 @@ static void ustctl_function_tests(pid_t pid) tap_ok(ustctl_set_marker_state(trace, "ust","bar", 1, pid), "Enable already enabled marker ust/bar"); - tap_ok(EEXIST == errno, + tap_ok(EEXIST == errno, "Right error code for enabling an already enabled marker"); tap_ok(ustctl_start_trace(trace, pid),