pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
12 static void
13 btoa(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 
19 int
20 main(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)