pacemaker 2.1.1-77db578727
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pcmk__btoa_test.c
Go to the documentation of this file.
1/*
2 * Copyright 2020 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#include <crm_internal.h>
11
12static void
13btoa(void) {
14 g_assert_cmpstr(pcmk__btoa(false), ==, "false");
15 g_assert_cmpstr(pcmk__btoa(true), ==, "true");
16 g_assert_cmpstr(pcmk__btoa(1 == 0), ==, "false");
17}
18
19int
20main(int argc, char **argv)
21{
22 g_test_init(&argc, &argv, NULL);
23
24 g_test_add_func("/common/strings/btoa/btoa", btoa);
25 return g_test_run();
26}
int main(int argc, char **argv)