libutil

C Utility Library
git clone http://git.omkov.net/libutil
Log | Tree | Refs | README | LICENCE | Download

libutil/src/test/test_error.c (14 lines, 288 B) -rw-r--r-- blame download

012345678910111213
// test_error.c
// Error unit test for libutil
// Copyright (C) 2020, Jakob Wakeling
// MIT Licence

#include "../error.h"

int main(int ac, char *av[]) { A0 = av[0];
	warn("%s: %s", "warn", SERR);
	alert("%s: %s", "alert", SERR);
	error(0, "%s: %s", "error", SERR);
	return 1; // Fail
}