aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stubs_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stubs_test.cpp')
-rw-r--r--tests/stubs_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stubs_test.cpp b/tests/stubs_test.cpp
index 9daaa2200..2e1acc11a 100644
--- a/tests/stubs_test.cpp
+++ b/tests/stubs_test.cpp
@@ -38,7 +38,7 @@ static void check_getpwnam(const char* username, uid_t uid, uid_type_t uid_type)
errno = 0;
passwd* pwd = getpwuid(uid);
ASSERT_TRUE(pwd != NULL);
- ASSERT_EQ(errno, 0);
+ ASSERT_EQ(0, errno);
EXPECT_STREQ(username, pwd->pw_name);
EXPECT_EQ(uid, pwd->pw_uid);
EXPECT_EQ(uid, pwd->pw_gid);