summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2022-08-08 19:49:40 +0000
committerSimon McVittie <smcv@collabora.com>2022-08-10 11:18:20 +0000
commitcf51eeb555dea1825b27a581b90f4bb5fc09759c (patch)
tree68d98144eb5631e8ca581570c8ee4633f41b1728 /test
parenta7fe9438c453859ff9bd4960f4a18537ade45243 (diff)
downloaddbus-cf51eeb555dea1825b27a581b90f4bb5fc09759c.tar.gz
test-utils-glib.c: Avoid using a non-portable errno value
ENODATA is not available on FreeBSD. Since the actual errno value here does not matter, use EPERM instead. This fixes the DBus build on FreeBSD.
Diffstat (limited to 'test')
-rw-r--r--test/test-utils-glib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-utils-glib.c b/test/test-utils-glib.c
index bcd83d11..c6383af5 100644
--- a/test/test-utils-glib.c
+++ b/test/test-utils-glib.c
@@ -91,7 +91,7 @@ can_become_user_or_skip (uid_t uid)
{
/* make sure we report failure even if errno is wrong */
if (errno == 0)
- errno = ENODATA;
+ errno = EPERM;
_exit (errno);
}