From 5888e99ef31b0c99137ae3e6eb509f7713137e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 24 Jan 2005 09:33:21 +0000 Subject: [PATCH] Sylvain Petreolle : Add makefile for "polytest" test & enable it. Fix compile warnings for diskspeed & zwcontinue tests svn path=/trunk/; revision=13245 --- rosapps/tests/Makefile | 2 +- rosapps/tests/diskspeed/diskspeed.c | 2 +- rosapps/tests/polytest/Makefile | 22 ++++++++++++++++++++++ rosapps/tests/zwcontinue/zwcontinue.c | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 rosapps/tests/polytest/Makefile diff --git a/rosapps/tests/Makefile b/rosapps/tests/Makefile index 974e72eddfc..9c9be422d98 100644 --- a/rosapps/tests/Makefile +++ b/rosapps/tests/Makefile @@ -8,7 +8,6 @@ include $(PATH_TO_TOP)/rules.mak # Broken tests # dnsapi iptest lan regdump subclass -# polytest - Needs a mingw makefile TEST_APPS = \ accelerator \ @@ -66,6 +65,7 @@ oskittcp \ p_dup_handle \ palbitblt \ patblt \ +polytest \ popupmenu \ primitives \ pteb \ diff --git a/rosapps/tests/diskspeed/diskspeed.c b/rosapps/tests/diskspeed/diskspeed.c index d19f8c0f344..fa089b95e60 100644 --- a/rosapps/tests/diskspeed/diskspeed.c +++ b/rosapps/tests/diskspeed/diskspeed.c @@ -81,7 +81,7 @@ int main(void) HANDLE hDevice; OVERLAPPED ov; - PBYTE Buffer; + PBYTE Buffer = NULL ; DWORD Start; DWORD dwReturned; DWORD dwReadTotal; diff --git a/rosapps/tests/polytest/Makefile b/rosapps/tests/polytest/Makefile new file mode 100644 index 00000000000..e9f9a73a5bc --- /dev/null +++ b/rosapps/tests/polytest/Makefile @@ -0,0 +1,22 @@ + +PATH_TO_TOP = ../../../reactos + +TARGET_NORC = yes + +TARGET_TYPE = program + +TARGET_APPTYPE = windows + +TARGET_NAME = polytest + +TARGET_SDKLIBS = kernel32.a gdi32.a + +TARGET_OBJECTS = polytest.o + +TARGET_CFLAGS = -Wall -Werror + +include $(PATH_TO_TOP)/rules.mak + +include $(TOOLS_PATH)/helper.mk + +# EOF diff --git a/rosapps/tests/zwcontinue/zwcontinue.c b/rosapps/tests/zwcontinue/zwcontinue.c index 637f0221c51..3cff63ef0be 100644 --- a/rosapps/tests/zwcontinue/zwcontinue.c +++ b/rosapps/tests/zwcontinue/zwcontinue.c @@ -35,7 +35,7 @@ static void randbytes(void * p, size_t n) { unsigned char * b; size_t i; - int r; + int r = rand(); b = (unsigned char *)p;