From 0d1000e85991826f1fbaede132b59045d6a2f319 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 12 Jan 2010 15:38:56 +0000 Subject: [PATCH] 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. --- test/Makefile.am | 3 +++ test/mifare_classic_fixture.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Makefile.am b/test/Makefile.am index 9ffddb3..503fbed 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 diff --git a/test/mifare_classic_fixture.c b/test/mifare_classic_fixture.c index 6f57b08..0158cea 100644 --- a/test/mifare_classic_fixture.c +++ b/test/mifare_classic_fixture.c @@ -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];