Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0b533513
Commit
0b533513
authored
Jun 19, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32/tests: Don't run tests if ScInitMapiUtil() fails.
parent
f06102b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
util.c
dlls/mapi32/tests/util.c
+9
-5
No files found.
dlls/mapi32/tests/util.c
View file @
0b533513
...
@@ -51,8 +51,7 @@ static void test_SwapPword(void)
...
@@ -51,8 +51,7 @@ static void test_SwapPword(void)
shorts
[
1
]
=
0x10ff
;
shorts
[
1
]
=
0x10ff
;
shorts
[
2
]
=
0x2001
;
shorts
[
2
]
=
0x2001
;
pSwapPword
(
shorts
,
2
);
pSwapPword
(
shorts
,
2
);
ok
((
shorts
[
0
]
==
0x01ff
&&
shorts
[
1
]
==
0xff10
&&
shorts
[
2
]
==
0x2001
)
||
ok
((
shorts
[
0
]
==
0x01ff
&&
shorts
[
1
]
==
0xff10
&&
shorts
[
2
]
==
0x2001
),
broken
(
shorts
[
0
]
==
0xff01
&&
shorts
[
1
]
==
0x10ff
&&
shorts
[
2
]
==
0x2001
)
/* Win9x */
,
"Expected {0x01ff,0xff10,0x2001}, got {0x%04x,0x%04x,0x%04x}
\n
"
,
"Expected {0x01ff,0xff10,0x2001}, got {0x%04x,0x%04x,0x%04x}
\n
"
,
shorts
[
0
],
shorts
[
1
],
shorts
[
2
]);
shorts
[
0
],
shorts
[
1
],
shorts
[
2
]);
}
}
...
@@ -69,8 +68,7 @@ static void test_SwapPlong(void)
...
@@ -69,8 +68,7 @@ static void test_SwapPlong(void)
longs
[
1
]
=
0x1000ffff
;
longs
[
1
]
=
0x1000ffff
;
longs
[
2
]
=
0x20000001
;
longs
[
2
]
=
0x20000001
;
pSwapPlong
(
longs
,
2
);
pSwapPlong
(
longs
,
2
);
ok
((
longs
[
0
]
==
0x0100ffff
&&
longs
[
1
]
==
0xffff0010
&&
longs
[
2
]
==
0x20000001
)
||
ok
((
longs
[
0
]
==
0x0100ffff
&&
longs
[
1
]
==
0xffff0010
&&
longs
[
2
]
==
0x20000001
),
broken
(
longs
[
0
]
==
0xffff0001
&&
longs
[
1
]
==
0x1000ffff
&&
longs
[
2
]
==
0x20000001
)
/* Win9x */
,
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08x,0x%08x,0x%08x}
\n
"
,
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08x,0x%08x,0x%08x}
\n
"
,
longs
[
0
],
longs
[
1
],
longs
[
2
]);
longs
[
0
],
longs
[
1
],
longs
[
2
]);
}
}
...
@@ -153,7 +151,7 @@ static void test_CbOfEncoded(void)
...
@@ -153,7 +151,7 @@ static void test_CbOfEncoded(void)
memset
(
buff
,
'\0'
,
sizeof
(
buff
));
memset
(
buff
,
'\0'
,
sizeof
(
buff
));
memset
(
buff
,
'?'
,
i
);
memset
(
buff
,
'?'
,
i
);
ulRet
=
pCbOfEncoded
(
buff
);
ulRet
=
pCbOfEncoded
(
buff
);
ok
(
ulRet
==
ulExpected
||
broken
(
ulRet
==
0
)
/* Win9x */
,
ok
(
ulRet
==
ulExpected
,
"CbOfEncoded(length %d): expected %d, got %d
\n
"
,
"CbOfEncoded(length %d): expected %d, got %d
\n
"
,
i
,
ulExpected
,
ulRet
);
i
,
ulExpected
,
ulRet
);
}
}
...
@@ -193,6 +191,12 @@ START_TEST(util)
...
@@ -193,6 +191,12 @@ START_TEST(util)
FreeLibrary
(
hMapi32
);
FreeLibrary
(
hMapi32
);
return
;
return
;
}
}
else
if
((
ret
==
E_FAIL
)
&&
(
GetLastError
()
==
ERROR_INVALID_HANDLE
))
{
win_skip
(
"ScInitMapiUtil doesn't work on some Win98 and WinME systems
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
}
test_SwapPword
();
test_SwapPword
();
test_SwapPlong
();
test_SwapPlong
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment