Add simple API test, syslog() no call to openlog()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
14
test/api.c
Normal file
14
test/api.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user