mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
{ROSTESTS]
Fix compilation svn path=/trunk/; revision=56418
This commit is contained in:
parent
652128646c
commit
3263e4fd82
|
@ -9,13 +9,21 @@
|
||||||
#include <wine/test.h>
|
#include <wine/test.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define ok_long(expression, result) \
|
void Test_CombineRgn_Params()
|
||||||
{ \
|
{
|
||||||
int _value = (expression); \
|
HRGN hrgn1, hrgn2, hrgn3;
|
||||||
ok(_value == (result), "Wrong value for %s, expected " #result " (0x%x), got 0x%x\n", \
|
|
||||||
#expression, (int)(result), _value); \
|
|
||||||
}
|
|
||||||
|
|
||||||
|
hrgn1 = CreateRectRgn(0, 0, 0, 0);
|
||||||
|
hrgn2 = CreateRectRgn(0, 0, 10, 10);
|
||||||
|
hrgn3 = CreateRectRgn(5, 5, 20, 20);
|
||||||
|
|
||||||
|
SetLastError(0xbadbabe);
|
||||||
|
ok_long(CombineRgn(NULL, NULL, NULL, 0), ERROR);
|
||||||
|
ok_long(CombineRgn(hrgn1, hrgn2, hrgn3, 0), ERROR);
|
||||||
|
ok_long(CombineRgn(hrgn1, hrgn2, hrgn3, 6), ERROR);
|
||||||
|
ok_long(GetLastError(), 0xbadbabe);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void Test_CombineRgn_COPY()
|
void Test_CombineRgn_COPY()
|
||||||
{
|
{
|
||||||
|
@ -189,6 +197,7 @@ void Test_CombineRgn_XOR()
|
||||||
|
|
||||||
START_TEST(CombineRgn)
|
START_TEST(CombineRgn)
|
||||||
{
|
{
|
||||||
|
Test_CombineRgn_Params();
|
||||||
Test_CombineRgn_COPY();
|
Test_CombineRgn_COPY();
|
||||||
Test_CombineRgn_AND();
|
Test_CombineRgn_AND();
|
||||||
Test_CombineRgn_OR();
|
Test_CombineRgn_OR();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS api tests
|
* PROJECT: ReactOS api tests
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL - See COPYING in the top level directory
|
||||||
* PURPOSE: Test for CreatePen
|
* PURPOSE: Test for CombineTransform
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winddi.h>
|
#include <winddi.h>
|
||||||
|
|
||||||
#define ok_int(x, y) ok(x == y, "Wrong value for " #x ", expected " #y ", got %ld\n", (long)x);
|
|
||||||
#define ok_flt(x, y) ok(x == y, "Wrong value for " #x ", expected " #y ", got %f\n", (double)x);
|
#define ok_flt(x, y) ok(x == y, "Wrong value for " #x ", expected " #y ", got %f\n", (double)x);
|
||||||
|
|
||||||
#define ok_xform(xform, m11, m12, m21, m22, dx, dy) \
|
#define ok_xform(xform, m11, m12, m21, m22, dx, dy) \
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
#include <wine/test.h>
|
#include <wine/test.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define ok_int(x, y) ok(x == y, "Wrong value for " #x ", expected " #y ", got %ld\n", (long)x);
|
|
||||||
|
|
||||||
void Test_DPtoLP_Params()
|
void Test_DPtoLP_Params()
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
#include <wine/test.h>
|
#include <wine/test.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define ok_err(dwErr) ok(GetLastError() == dwErr, "LastError is wrong, expected %d, got %ld\n", dwErr, GetLastError())
|
|
||||||
|
|
||||||
void Test_GetDIBits()
|
void Test_GetDIBits()
|
||||||
{
|
{
|
||||||
HDC hdcScreen, hdcMem;
|
HDC hdcScreen, hdcMem;
|
||||||
|
|
|
@ -15,14 +15,6 @@
|
||||||
#define SYSRGN 4
|
#define SYSRGN 4
|
||||||
#define RGN5 5
|
#define RGN5 5
|
||||||
|
|
||||||
#define ok_int(x, exp) \
|
|
||||||
ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \
|
|
||||||
(int)__LINE__, #x, (int)(exp), (int)(x))
|
|
||||||
|
|
||||||
#define ok_long(x, exp) \
|
|
||||||
ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \
|
|
||||||
(int)__LINE__, #x, (int)(exp), (int)(x))
|
|
||||||
|
|
||||||
HWND ghwnd;
|
HWND ghwnd;
|
||||||
HDC ghdcWindow;
|
HDC ghdcWindow;
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,6 @@ HBITMAP ghbmpTarget;
|
||||||
PULONG gpulTargetBits;
|
PULONG gpulTargetBits;
|
||||||
HDC hdcTarget;
|
HDC hdcTarget;
|
||||||
|
|
||||||
#define ok_int(x, exp) \
|
|
||||||
ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \
|
|
||||||
(int)__LINE__, #x, (int)(exp), (int)(x))
|
|
||||||
|
|
||||||
#define ok_long(x, exp) \
|
|
||||||
ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \
|
|
||||||
(int)__LINE__, #x, (int)(exp), (int)(x))
|
|
||||||
|
|
||||||
void Test_BrushOrigin()
|
void Test_BrushOrigin()
|
||||||
{
|
{
|
||||||
ULONG aulBits[2] = {0x5555AAAA, 0};
|
ULONG aulBits[2] = {0x5555AAAA, 0};
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
#define TEST(x) ok(x, #x"\n")
|
#define TEST(x) ok(x, #x"\n")
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
#define RTEST(x) ok(x, #x"\n")
|
||||||
|
|
||||||
#define ok_err(dwErr) ok(GetLastError() == dwErr, "Wrong LastError, expected %d, got %ld\n", dwErr, GetLastError())
|
|
||||||
|
|
||||||
HDC hdc1, hdc2;
|
HDC hdc1, hdc2;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -11,12 +11,6 @@
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define ok_str(x, y) \
|
|
||||||
ok(strcmp(x, y) == 0, "got '%s', expected '%s'\n", x, y);
|
|
||||||
|
|
||||||
#define ok_int(x, y) \
|
|
||||||
ok(x == y, "got %d, expected %d\n", x, y);
|
|
||||||
|
|
||||||
START_TEST(splitpath)
|
START_TEST(splitpath)
|
||||||
{
|
{
|
||||||
char drive[5];
|
char drive[5];
|
||||||
|
|
|
@ -10,13 +10,6 @@
|
||||||
#include <wine/test.h>
|
#include <wine/test.h>
|
||||||
#include <ndk/ntndk.h>
|
#include <ndk/ntndk.h>
|
||||||
|
|
||||||
#define ok_long(x, y) \
|
|
||||||
ok(x == y, "got %ld, expected %ld\n", (long)x, (long)y);
|
|
||||||
|
|
||||||
#define ok_ntstatus(status, expected) \
|
|
||||||
ok(status == expected, "got 0x%lx, expected 0x%lx\n", status, expected);
|
|
||||||
// ok(status == expected, "expected: " ##expected## ", got 0x%lx\n", status)
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GetPrivilege()
|
GetPrivilege()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue