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
e0475a3e
Commit
e0475a3e
authored
Jan 24, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Jan 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test IsThreadAFiber function.
parent
f57dbecd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
fiber.c
dlls/kernel32/tests/fiber.c
+12
-0
No files found.
dlls/kernel32/tests/fiber.c
View file @
e0475a3e
...
@@ -27,6 +27,7 @@ static void (WINAPI *pSwitchToFiber)(LPVOID);
...
@@ -27,6 +27,7 @@ static void (WINAPI *pSwitchToFiber)(LPVOID);
static
void
(
WINAPI
*
pDeleteFiber
)(
LPVOID
);
static
void
(
WINAPI
*
pDeleteFiber
)(
LPVOID
);
static
LPVOID
(
WINAPI
*
pConvertThreadToFiberEx
)(
LPVOID
,
DWORD
);
static
LPVOID
(
WINAPI
*
pConvertThreadToFiberEx
)(
LPVOID
,
DWORD
);
static
LPVOID
(
WINAPI
*
pCreateFiberEx
)(
SIZE_T
,
SIZE_T
,
DWORD
,
LPFIBER_START_ROUTINE
,
LPVOID
);
static
LPVOID
(
WINAPI
*
pCreateFiberEx
)(
SIZE_T
,
SIZE_T
,
DWORD
,
LPFIBER_START_ROUTINE
,
LPVOID
);
static
BOOL
(
WINAPI
*
pIsThreadAFiber
)(
void
);
static
LPVOID
fibers
[
2
];
static
LPVOID
fibers
[
2
];
static
BYTE
testparam
=
185
;
static
BYTE
testparam
=
185
;
...
@@ -43,6 +44,7 @@ static VOID init_funcs(void)
...
@@ -43,6 +44,7 @@ static VOID init_funcs(void)
X
(
DeleteFiber
);
X
(
DeleteFiber
);
X
(
ConvertThreadToFiberEx
);
X
(
ConvertThreadToFiberEx
);
X
(
CreateFiberEx
);
X
(
CreateFiberEx
);
X
(
IsThreadAFiber
);
#undef X
#undef X
}
}
...
@@ -122,6 +124,16 @@ static void test_FiberHandling(void)
...
@@ -122,6 +124,16 @@ static void test_FiberHandling(void)
pSwitchToFiber
(
fibers
[
1
]);
pSwitchToFiber
(
fibers
[
1
]);
pDeleteFiber
(
fibers
[
1
]);
pDeleteFiber
(
fibers
[
1
]);
if
(
!
pIsThreadAFiber
)
{
skip
(
"IsThreadAFiber not present
\n
"
);
return
;
}
ok
(
pIsThreadAFiber
(),
"IsThreadAFiber reported FALSE
\n
"
);
test_ConvertFiberToThread
();
ok
(
!
pIsThreadAFiber
(),
"IsThreadAFiber reported TRUE
\n
"
);
}
}
START_TEST
(
fiber
)
START_TEST
(
fiber
)
...
...
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