Deleted Added
full compact
printbasic_test.c (291840) printbasic_test.c (292152)
1/*-
2 * Copyright (c) 2009 David Schultz <das@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Tests for basic and miscellaneous printf() formats.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 David Schultz <das@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Tests for basic and miscellaneous printf() formats.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: stable/10/lib/libc/tests/stdio/printbasic_test.c 291840 2015-12-05 04:17:40Z ngie $");
32__FBSDID("$FreeBSD: stable/10/lib/libc/tests/stdio/printbasic_test.c 292152 2015-12-13 04:29:09Z ngie $");
33
34#include <err.h>
35#include <limits.h>
36#include <locale.h>
37#include <stdio.h>
38#include <stdarg.h>
39#include <stddef.h>
40#include <stdint.h>

--- 48 unchanged lines hidden (view full) ---

89 mbstowcs(wfmt, fmt, BUF - 1);
90 mbstowcs(wresult, result, BUF - 1);
91 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2);
92 if (wcscmp(wresult, ws) != 0) {
93 atf_tc_fail(
94 "wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
95 wfmt, argstr, ws, wresult);
96 }
33
34#include <err.h>
35#include <limits.h>
36#include <locale.h>
37#include <stdio.h>
38#include <stdarg.h>
39#include <stddef.h>
40#include <stdint.h>

--- 48 unchanged lines hidden (view full) ---

89 mbstowcs(wfmt, fmt, BUF - 1);
90 mbstowcs(wresult, result, BUF - 1);
91 vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2);
92 if (wcscmp(wresult, ws) != 0) {
93 atf_tc_fail(
94 "wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
95 wfmt, argstr, ws, wresult);
96 }
97 va_end(ap);
98 va_end(ap2);
97}
98
99ATF_TC_WITHOUT_HEAD(int_within_limits);
100ATF_TC_BODY(int_within_limits, tc)
101{
102
103 ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
104

--- 54 unchanged lines hidden ---
99}
100
101ATF_TC_WITHOUT_HEAD(int_within_limits);
102ATF_TC_BODY(int_within_limits, tc)
103{
104
105 ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
106

--- 54 unchanged lines hidden ---