From: Mathieu Desnoyers Date: Wed, 19 Dec 2012 19:37:14 +0000 (-0500) Subject: Test: update ust tracing unit tests to 2.1 internal ABI X-Git-Tag: v2.1.0~6 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=1a34b35bd722069b483d2b5030f8ddc65e4573c2;p=lttng-ust.git Test: update ust tracing unit tests to 2.1 internal ABI Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/ust-basic-tracing/ust-basic-tracing.c b/tests/ust-basic-tracing/ust-basic-tracing.c index cd2d6f05..88260181 100644 --- a/tests/ust-basic-tracing/ust-basic-tracing.c +++ b/tests/ust-basic-tracing/ust-basic-tracing.c @@ -40,6 +40,7 @@ #include #include +#include #include "../../libringbuffer/backend.h" #include "../../libringbuffer/frontend.h" #include "../../liblttng-ust/compat.h" /* For ENODATA */ @@ -102,7 +103,7 @@ int open_streams(int sock, int channel_handle, struct lttng_ust_object_data *str } k++; } - if (ret == -ENOENT) + if (ret == -LTTNG_UST_ERR_NOENT) break; if (ret) return ret; @@ -822,6 +823,7 @@ int main(int argc, const char **argv) pid_t ppid; uid_t uid; gid_t gid; + uint32_t bits_per_long; char name[16]; /* Process name */ } reg_msg; char bufname[17]; diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index 015211c9..965c34cd 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -40,6 +40,7 @@ #include #include +#include #include <../../libringbuffer/backend.h> #include <../../libringbuffer/frontend.h> #include "../../liblttng-ust/compat.h" /* For ENODATA */ @@ -109,7 +110,7 @@ int open_streams(int sock, int channel_handle, struct lttng_ust_object_data *str } k++; } - if (ret == -ENOENT) + if (ret == -LTTNG_UST_ERR_NOENT) break; if (ret) return ret; @@ -813,6 +814,7 @@ int main(int argc, char **argv) pid_t ppid; uid_t uid; gid_t gid; + uint32_t bits_per_long; char name[16]; /* Process name */ } reg_msg; char bufname[17];