From dc97ff8380c2d35aebdd073bcd727084c5037c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 7 Dec 2015 14:51:21 +0100 Subject: [PATCH] fate/api: add w32+os2 support for fate-api-threadmessage --- tests/api/Makefile | 2 +- tests/api/api-threadmessage-test.c | 3 +-- tests/fate/api.mak | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/api/Makefile b/tests/api/Makefile index d83ac24bbc..ec0e125c01 100644 --- a/tests/api/Makefile +++ b/tests/api/Makefile @@ -3,7 +3,7 @@ APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264 APITESTPROGS-yes += api-seek APITESTPROGS-yes += api-codec-param APITESTPROGS-$(call DEMDEC, H263, H263) += api-band -APITESTPROGS-$(HAVE_PTHREADS) += api-threadmessage +APITESTPROGS-$(HAVE_THREADS) += api-threadmessage APITESTPROGS += $(APITESTPROGS-yes) APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o) diff --git a/tests/api/api-threadmessage-test.c b/tests/api/api-threadmessage-test.c index c78af2a1d5..3e0ac5cf19 100644 --- a/tests/api/api-threadmessage-test.c +++ b/tests/api/api-threadmessage-test.c @@ -22,12 +22,11 @@ * Thread message API test */ -#include - #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/frame.h" #include "libavutil/threadmessage.h" +#include "libavutil/thread.h" // not public struct sender_data { int id; diff --git a/tests/fate/api.mak b/tests/fate/api.mak index 746ecb6145..30132398db 100644 --- a/tests/fate/api.mak +++ b/tests/fate/api.mak @@ -28,7 +28,7 @@ FATE_API_SAMPLES_LIBAVFORMAT-yes += fate-api-jpeg-codec-param fate-api-jpeg-codec-param: $(APITESTSDIR)/api-codec-param-test$(EXESUF) fate-api-jpeg-codec-param: CMD = run $(APITESTSDIR)/api-codec-param-test $(TARGET_SAMPLES)/exif/image_small.jpg -FATE_API-$(HAVE_PTHREADS) += fate-api-threadmessage +FATE_API-$(HAVE_THREADS) += fate-api-threadmessage fate-api-threadmessage: $(APITESTSDIR)/api-threadmessage-test$(EXESUF) fate-api-threadmessage: CMD = run $(APITESTSDIR)/api-threadmessage-test 3 10 30 50 2 20 40 fate-api-threadmessage: CMP = null