From bc549f166d7ece1bfd6d1a937019a7568b38b332 Mon Sep 17 00:00:00 2001 From: Nils Carlson Date: Thu, 24 Feb 2011 09:54:28 +0100 Subject: [PATCH] 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 --- tests/libustctl_function_tests/libustctl_function_tests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/libustctl_function_tests/libustctl_function_tests.c b/tests/libustctl_function_tests/libustctl_function_tests.c index 7c12695..1461997 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), -- 2.34.1