test-kdbus: check for EOPNOTSUPP instead of ENOTSUPP
authorJohn de la Garza <john@jjdev.com>
Fri, 2 May 2014 21:15:30 +0000 (14:15 -0700)
committerDaniel Mack <zonque@gmail.com>
Fri, 2 May 2014 21:40:42 +0000 (23:40 +0200)
Signed-off-by: John de la Garza <john@jjdev.com>
test/test-kdbus.c

index 6f9b3e9c31642ba193caac77d959df97a49e7ece..e369b4e6b54448ae17d56dfeda8169aeff7d7055 100644 (file)
@@ -411,7 +411,7 @@ static int check_hello(struct kdbus_check_env *env)
        /* check faulty flags */
        hello.conn_flags = 1ULL << 32;
        ret = ioctl(fd, KDBUS_CMD_HELLO, &hello);
-       ASSERT_RETURN(ret == -1 && errno == 524);
+       ASSERT_RETURN(ret == -1 && errno == EOPNOTSUPP);
 
        hello.conn_flags = KDBUS_HELLO_ACCEPT_FD;