Fix regression tests build on FreeBSD.

While here, enhance error message when no MIFARE Classic tag can be found on the NFC device when running test_mifare_classic.la tests.
This commit is contained in:
Romain Tartiere 2010-01-12 15:38:56 +00:00
parent 576801d5ff
commit 0d1000e859
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,9 @@
INCLUDES = $(CUTTER_CFLAGS) -I$(top_srcdir)/libfreefare
LIBS = $(CUTTER_LIBS)
AM_CFLAGS = @LIBNFC_CFLAGS@
if WITH_CUTTER
TESTS = run-test.sh

View file

@ -16,7 +16,7 @@ setup ()
tags = mifare_classic_get_tags (device);
cut_assert_not_null (tags ,"Error enumerating NFC tags");
cut_assert_not_null (tags[0], "No tag on NFC device");
cut_assert_not_null (tags[0], "No MIFARE CLassic tag on NFC device");
tag = tags[0];