Since commit
7015a1e6 ("prevent special-purpose connections from
owning names or exchanging messages"), ioctl() calls return
-EOPNOTSUPP they are issued to a handle of a inapproprate type.
Follow this change in the test as well.
/* a 2nd try should result in -EALREADY */
ret = ioctl(conn->fd, KDBUS_CMD_BYEBYE, 0);
- ASSERT_RETURN(ret == -1 && errno == EALREADY);
+ ASSERT_RETURN(ret == -1 && errno == EOPNOTSUPP);
free_conn(conn);
/* check that we can acquire a name */
ret = ioctl(conn->fd, KDBUS_CMD_NAME_ACQUIRE, cmd_name);
- ASSERT_RETURN(ret == -1 && errno == EPERM);
+ ASSERT_RETURN(ret == -1 && errno == EOPNOTSUPP);
free_conn(conn);