BIND 10 trac2831, updated. 2a70916c9d0949f710a3f289ef13925bdf12dd5d [2831] Write the status to the waiting parent anyway
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Apr 12 14:32:40 UTC 2013
The branch, trac2831 has been updated
via 2a70916c9d0949f710a3f289ef13925bdf12dd5d (commit)
from 3469f1a8757e2b49c29aa93513c64a5167dff400 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2a70916c9d0949f710a3f289ef13925bdf12dd5d
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Apr 12 20:02:21 2013 +0530
[2831] Write the status to the waiting parent anyway
We should write it even if the test failed.
-----------------------------------------------------------------------
Summary of changes:
.../util/tests/memory_segment_mapped_unittest.cc | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/util/tests/memory_segment_mapped_unittest.cc b/src/lib/util/tests/memory_segment_mapped_unittest.cc
index 80411b8..1703480 100644
--- a/src/lib/util/tests/memory_segment_mapped_unittest.cc
+++ b/src/lib/util/tests/memory_segment_mapped_unittest.cc
@@ -399,12 +399,10 @@ TEST_F(MemorySegmentMappedTest, multiProcess) {
if (ptr_child) {
const uint32_t val = *static_cast<const uint32_t*>(ptr_child);
EXPECT_EQ(424242, val);
- if (val == 424242) {
- // tell the parent it succeeded using a result code other
- // than 255.
- const char ok = 0;
- EXPECT_EQ(1, write(pipes[1], &ok, sizeof(ok)));
- }
+ // tell the parent whether it succeeded. 0 means it did,
+ // 0xff means it failed.
+ const char ok = (val == 424242) ? 0 : 0xff;
+ EXPECT_EQ(1, write(pipes[1], &ok, sizeof(ok)));
}
close(pipes[1]);
exit(0);
More information about the bind10-changes
mailing list