Add simple API test, syslog() no call to openlog()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-03 15:54:36 +01:00
parent c05956010c
commit b1548e7c73
5 changed files with 35 additions and 2 deletions

14
test/api.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdlib.h>
#include "syslog.h"
int main(void)
{
char *msg = getenv("MSG");
if (!msg)
return 1;
syslog(LOG_ERR, msg);
return 0;
}