summaryrefslogtreecommitdiffstats
path: root/src/test/test-fs-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-10 16:09:52 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-10 21:23:14 +0100
commit0192cbdb2c19ed2abbf6662090f45ab3bf4caf56 (patch)
tree97abcf845575b1b5a0b47a8935bb8b713ffab6f0 /src/test/test-fs-util.c
parentdocs: note that udev doesn't deal with binary attribute values (#11383) (diff)
downloadsystemd-0192cbdb2c19ed2abbf6662090f45ab3bf4caf56.tar.xz
systemd-0192cbdb2c19ed2abbf6662090f45ab3bf4caf56.zip
Revert "nss: prevent PROTECT_ERRNO from squashing changes to *errnop"
This reverts commit b26c90411343d74b15deb24bd87077848e316dab. I don't see anythign wrong, but Ubuntu autopkgtest CI started failing fairly consistently since this was merged. Let's see if reverting fixes things.
Diffstat (limited to 'src/test/test-fs-util.c')
-rw-r--r--src/test/test-fs-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c
index e049abc4a4..b3a4b1749c 100644
--- a/src/test/test-fs-util.c
+++ b/src/test/test-fs-util.c
@@ -361,11 +361,11 @@ static void test_unlink_noerrno(void) {
{
PROTECT_ERRNO;
- errno = 42;
+ errno = -42;
assert_se(unlink_noerrno(name) >= 0);
- assert_se(errno == 42);
+ assert_se(errno == -42);
assert_se(unlink_noerrno(name) < 0);
- assert_se(errno == 42);
+ assert_se(errno == -42);
}
}