X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Ftest_ctf_writer.c;h=ce656b318c3320740bebbe0241a73de97750508c;hp=0e4219c532281d016967e78e108036146ebac967;hb=559455a97078bcf4040a95f611a33b7fd569402b;hpb=0954670a32efeaa4a5ffe1f24c9a31fe0ab6744c diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 0e4219c5..ce656b31 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include @@ -728,7 +728,7 @@ int main(int argc, char **argv) plan_no_plan(); - if (!mkdtemp(trace_path)) { + if (!bt_mkdtemp(trace_path)) { perror("# perror"); } @@ -756,7 +756,8 @@ int main(int argc, char **argv) NULL), "bt_ctf_writer_add_environment_field error with NULL field value"); - if (uname(&name)) { + /* On Solaris, uname() can return any positive value on success */ + if (uname(&name) < 0) { perror("uname"); return -1; }