1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

minor corrections to the tests

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@365 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2005-11-01 05:01:02 +00:00
parent 29facd9a0f
commit 26aaefdb9d
3 changed files with 9 additions and 5 deletions

View File

@ -16,8 +16,8 @@ test-hash: test-hash.o hash.o
test-portmon: test-portmon.o libtcp-portmon.o hash.o test-portmon: test-portmon.o libtcp-portmon.o hash.o
$(CC) $(CFLAGS) -o $@ test-portmon.o libtcp-portmon.o hash.o $(CC) $(CFLAGS) -o $@ test-portmon.o libtcp-portmon.o hash.o
test-hash.o: test-hash.c ../src/hash.h test-hash.o: test-hash.c hash.h
test-portmon.o: test-portmon.c ../src/libtcp-portmon.h ../src/hash.h test-portmon.o: test-portmon.c libtcp-portmon.h hash.h
hash.h: ../src/hash.h hash.h: ../src/hash.h
cp ../src/hash.h . cp ../src/hash.h .

View File

@ -1,13 +1,12 @@
/* ------------------------------------------------------ /* ------------------------------------------------------
* test-hash.c: unit testing for hash functions in hash.h * test-hash.c: unit testing for hash functions in hash.h
*
* Philip Kovacs kovacsp3@comcast.net 2005 * Philip Kovacs kovacsp3@comcast.net 2005
* ------------------------------------------------------*/ * ------------------------------------------------------*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "../src/hash.h" #include "hash.h"
char *data[] = { char *data[] = {
"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",

View File

@ -1,6 +1,11 @@
/* -------------------------------------------------------
* test-portmon.c: unit testing for libtcp-portmon library
* Philip Kovacs (kovacsp3@comcast.net) 2005
* ------------------------------------------------------*/
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include "../src/libtcp-portmon.h" #include "libtcp-portmon.h"
volatile int g_signal; volatile int g_signal;