X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_utils_compat_pthread.cpp;h=3adfd7ea7137815d921d2e99b88a756578c1b3da;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hp=55e584b8bc9b34745a074e3f73732c1f2e3c5259;hpb=52e345b9ac912d033c2a2c25a170a01cf209839d;p=lttng-tools.git diff --git a/tests/unit/test_utils_compat_pthread.cpp b/tests/unit/test_utils_compat_pthread.cpp index 55e584b8b..3adfd7ea7 100644 --- a/tests/unit/test_utils_compat_pthread.cpp +++ b/tests/unit/test_utils_compat_pthread.cpp @@ -5,10 +5,10 @@ * */ -#include -#include #include "common/compat/pthread.hpp" +#include +#include #include #define TEST_NAME_PROPER_LEN 16 @@ -44,8 +44,10 @@ int main(void) /* Get the thread name again, should be the one we set */ ret = lttng_pthread_getname_np(name1, TEST_NAME_PROPER_LEN); ok(ret == 0, "Get a short thread name: '%s'", name1); - ok(strcmp(short_name, name1) == 0, "Compare the short thread name: '%s' == '%s'", short_name, name1); - + ok(strcmp(short_name, name1) == 0, + "Compare the short thread name: '%s' == '%s'", + short_name, + name1); /* Set a thread name of 16 bytes */ ret = lttng_pthread_setname_np(long_name); @@ -54,7 +56,10 @@ int main(void) /* Get the thread name again, should be the one we set */ ret = lttng_pthread_getname_np(name1, TEST_NAME_PROPER_LEN); ok(ret == 0, "Get a long thread name: '%s'", name1); - ok(strncmp(long_name, name1, TEST_NAME_PROPER_LEN - 1) == 0, "Compare the long thread name: '%s' == '%s'", long_name, name1); + ok(strncmp(long_name, name1, TEST_NAME_PROPER_LEN - 1) == 0, + "Compare the long thread name: '%s' == '%s'", + long_name, + name1); return exit_status(); }