Index

lognestmonster / 9974d1c

A general-purpose single-header C logging library and parser for event-based logs. (Incomplete)

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
19106 Feb 2020 18:390ab0f71Bring header unit tests up to dateJosh Stockin12311G

Blob @ lognestmonster / tests / header_unit_2.c

text/plain925 bytesdownload raw
1/* lognestmonster Copyright (c) 2020 Joshua 'joshuas3' Stockin
2 * <https://joshstock.in>
3 * <https://github.com/JoshuaS3/lognestmonster>
4 *
5 * This software is licensed and distributed under the terms of the MIT License.
6 * See the MIT License in the LICENSE file of this project's root folder.
7 *
8 * This comment block and its contents, including this disclaimer, MUST be
9 * preserved in all copies or distributions of this software's source.
10 */
11
12// main_test.c
13// Second part of the main lognestmonster unit test. Tests queue integrity
14// across translation units.
15
16#include <stdio.h> // printf
17#include <stdlib.h> // abort
18#include "lognestmonster.h"
19
20void verify_queue_integrity(lnmQueue queue, char * queueName) {
21 printf("tests/header_unit_2.c: queue == lnmQueueByName(\"%s\"): ", queueName);
22 if (queue == lnmQueueByName(queueName)) {
23 printf("true\n");
24 } else {
25 printf("false. exiting...\n");
26 abort();
27 }
28}
29