Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109361593
D43734.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43734.diff
View Options
diff --git a/tests/sys/kern/unix_passfd_test.c b/tests/sys/kern/unix_passfd_test.c
--- a/tests/sys/kern/unix_passfd_test.c
+++ b/tests/sys/kern/unix_passfd_test.c
@@ -912,7 +912,7 @@
/* Only the non-empty message should be received. */
len = recvmsg(fd[1], &msghdr, 0);
ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno));
- ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int)));
+ ATF_REQUIRE(msghdr.msg_controllen == CMSG_SPACE(sizeof(int)));
error = close(*(int *)CMSG_DATA(msghdr.msg_control));
ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno));
@@ -938,7 +938,7 @@
/* Only the non-empty message should be received. */
len = recvmsg(fd[1], &msghdr, 0);
ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno));
- ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int)));
+ ATF_REQUIRE(msghdr.msg_controllen == CMSG_SPACE(sizeof(int)));
error = close(*(int *)CMSG_DATA(msghdr.msg_control));
ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 1:49 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16463961
Default Alt Text
D43734.diff (1 KB)
Attached To
Mode
D43734: tests/unix_passfd: fix typos - assignment instead of comparison
Attached
Detach File
Event Timeline
Log In to Comment