mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35: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:
parent
29facd9a0f
commit
26aaefdb9d
@ -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 .
|
||||||
|
@ -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",
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user