annotate tests/unistr/test-u8-strcat.c @ 18052:20a313c1ef00

unistr/uN-strtok-tests: avoid a trivial leak * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify. Free input and delim after the multibyte delimiter tests.
author Daiki Ueno <ueno@gnu.org>
date Tue, 07 Jul 2015 15:12:52 +0900
parents ab58d4870664
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12705
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of u8_strcat() function.
17848
ab58d4870664 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 17587
diff changeset
2 Copyright (C) 2010-2015 Free Software Foundation, Inc.
12705
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <config.h>
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include "unistr.h"
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include "macros.h"
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #define UNIT uint8_t
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #define U_STRCAT u8_strcat
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #define MAGIC 0xBA
da5c5a1f41e9 Tests for module 'unistr/u8-strcat'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #include "test-strcat.h"