]>
git.proxmox.com Git - mirror_frr.git/blob - tests/lib/test_zlog.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2018 Cumulus Networks, Inc.
12 /* maximum amount of data to hexdump */
16 * Test hexdump functionality.
18 * At the moment, not crashing is considered success.
20 static bool test_zlog_hexdump(void)
27 for (unsigned int i
= 0; i
< nl
; i
++)
28 d
[i
] = frr_weak_random();
29 zlog_hexdump(d
, nl
- 1);
32 } while (nl
<= MAXDATA
);
37 bool (*tests
[])(void) = {
41 int main(int argc
, char **argv
)
43 zlog_aux_init("NONE: ", ZLOG_DISABLED
);
45 for (unsigned int i
= 0; i
< array_size(tests
); i
++)