Port: uname can return a positive value on success
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 16 Oct 2015 18:57:30 +0000 (14:57 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 16 Oct 2015 19:40:27 +0000 (15:40 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 0e4219c532281d016967e78e108036146ebac967..cef541234a50d0cae03e81eb765ca658d15471d0 100644 (file)
@@ -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;
        }
This page took 0.035646 seconds and 4 git commands to generate.