X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Flibustctl_function_tests%2Flibustctl_function_tests.c;h=146199713bd24169f302ad770aa350b4782f2f08;hb=bc549f166d7ece1bfd6d1a937019a7568b38b332;hp=7c12695ab2adc579801cd1ef4986dcce82de4211;hpb=6678d7dd072caf7fc2b9aec8998c565a6326d359;p=ust.git 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),