Page MenuHomeFreeBSD

D62321.1796310552.diff
No OneTemporary

Authored By
Unknown
Size
675 B
Referenced Files
None
Subscribers
None

D62321.1796310552.diff

diff --git a/lib/libc/tests/stdio/open_memstream2_test.c b/lib/libc/tests/stdio/open_memstream2_test.c
--- a/lib/libc/tests/stdio/open_memstream2_test.c
+++ b/lib/libc/tests/stdio/open_memstream2_test.c
@@ -42,10 +42,9 @@
static void
assert_stream(const char *contents)
{
- if (strlen(contents) != len)
- printf("bad length %zd for \"%s\"\n", len, contents);
- else if (strncmp(buf, contents, strlen(contents)) != 0)
- printf("bad buffer \"%s\" for \"%s\"\n", buf, contents);
+ ATF_REQUIRE_EQ(len, strlen(contents));
+ ATF_REQUIRE_MSG(strncmp(buf, contents, len) == 0,
+ "bad buffer \"%s\" for \"%s\"\n", buf, contents);
}
ATF_TC_WITHOUT_HEAD(open_group_test);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 3, 3:09 PM (19 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42183664
Default Alt Text
D62321.1796310552.diff (675 B)

Event Timeline