1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
This commit is contained in:
Gabor Adam Toth 2011-04-29 23:11:48 +02:00
parent cb2132ef93
commit 47e7af7354
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ all: $(TARGETS)
./testRender ./testRender
./testMatch ./testMatch
./isRoutingVar ./isRoutingVar
./getVarType
test: $(TARGETS) test: $(TARGETS)
for f in packets/full-* packets/error-*; do echo ">> $$f"; ./testParser $$f; done for f in packets/full-* packets/error-*; do echo ">> $$f"; ./testParser $$f; done

View file

@ -32,7 +32,7 @@ int testPresence(const char *avail, int availlen, const char *desc, int desclen,
psyc_render(&packet, buffer, sizeof(buffer)); psyc_render(&packet, buffer, sizeof(buffer));
if (verbose) if (verbose)
write(0, buffer, packet.length); write(0, buffer, packet.length);
return strncmp(rendered, buffer, packet. return strncmp(rendered, buffer, packet.length);
} }
int testList(const char *rendered, uint8_t verbose) int testList(const char *rendered, uint8_t verbose)