diff --git a/test/Makefile.am b/test/Makefile.am index 909ca98..7d1dc92 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,6 +1,6 @@ CFLAGS += -DTEST bin_PROGRAMS = test -test_SOURCES = test.h ../src/pam_panic/pam_panic_authdevice.c ../src/pam_panic/pam_panic_reject.c test.c +test_SOURCES = ../src/pam_panic/pam_panic_authdevice.c ../src/pam_panic/pam_panic_reject.c test.c test_LDFLAGS = -lpam -lcunit all: diff --git a/test/test.c b/test/test.c index 85cd565..027c21c 100644 --- a/test/test.c +++ b/test/test.c @@ -1,10 +1,18 @@ +/* +FILENAME : test.c +DESCRIPTION : Test suites with CUnit for pam_panic +AUTHOR : Bandie +DATE : 2018-05-11T04:13:51+02:00 +LICENSE : GNU-GPLv3 +*/ + + #include #include #include #include "../src/pam_panic/pam_panic_authdevice.h" #include "../src/pam_panic/pam_panic_reject.h" #include -#include #define STATE_GOOD 0 #define STATE_BAD 99 @@ -36,7 +44,6 @@ void test_authDeviceGood(void) { fclose(f); int ret = authDevice(NULL, gU, bU, NULL, 0, 0, 0); - printf("%d\n", ret); CU_ASSERT_EQUAL(ret, STATE_GOOD); unlink(gU); } diff --git a/test/test.h b/test/test.h deleted file mode 100644 index 9fca16e..0000000 --- a/test/test.h +++ /dev/null @@ -1 +0,0 @@ -#define TEST