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
a5286b87
Commit
a5286b87
authored
Mar 02, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ninput/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
219ff69a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
25 deletions
+24
-25
Makefile.in
dlls/ninput/tests/Makefile.in
+0
-1
ninput.c
dlls/ninput/tests/ninput.c
+24
-24
No files found.
dlls/ninput/tests/Makefile.in
View file @
a5286b87
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
ninput.dll
IMPORTS
=
ninput
...
...
dlls/ninput/tests/ninput.c
View file @
a5286b87
...
...
@@ -25,14 +25,14 @@ static void test_context(void)
HRESULT
hr
;
hr
=
CreateInteractionContext
(
&
context
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#
l
x.
\n
"
,
hr
);
hr
=
DestroyInteractionContext
(
context
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#
l
x.
\n
"
,
hr
);
hr
=
CreateInteractionContext
(
NULL
);
ok
(
hr
==
E_POINTER
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
DestroyInteractionContext
(
NULL
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#
l
x.
\n
"
,
hr
);
}
static
void
test_properties
(
void
)
...
...
@@ -42,44 +42,44 @@ static void test_properties(void)
HRESULT
hr
;
hr
=
CreateInteractionContext
(
&
context
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
&
value
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#
l
x.
\n
"
,
hr
);
ok
(
value
==
TRUE
,
"Got unexpected value %#x.
\n
"
,
value
);
hr
=
SetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
TRUE
);
ok
(
hr
==
S_OK
,
"Failed to set property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to set property, hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
&
value
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#
l
x.
\n
"
,
hr
);
ok
(
value
==
TRUE
,
"Got unexpected value %#x.
\n
"
,
value
);
hr
=
SetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
FALSE
);
ok
(
hr
==
S_OK
,
"Failed to set property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to set property, hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
&
value
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to get property, hr %#
l
x.
\n
"
,
hr
);
ok
(
value
==
FALSE
,
"Got unexpected value %#x.
\n
"
,
value
);
hr
=
SetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
2
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
3
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetPropertyInteractionContext
(
context
,
0xdeadbeef
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
context
,
0xdeadbeef
,
&
value
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
context
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetPropertyInteractionContext
(
NULL
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
FALSE
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
GetPropertyInteractionContext
(
NULL
,
INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS
,
&
value
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
DestroyInteractionContext
(
context
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#
l
x.
\n
"
,
hr
);
}
static
void
test_configuration
(
void
)
...
...
@@ -101,20 +101,20 @@ static void test_configuration(void)
};
hr
=
CreateInteractionContext
(
&
context
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#
l
x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
NULL
,
0
,
NULL
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
0
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
1
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"Got hr %#
l
x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
ARRAY_SIZE
(
config
),
config
);
ok
(
hr
==
S_OK
,
"Failed to set configuration, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to set configuration, hr %#
l
x.
\n
"
,
hr
);
hr
=
DestroyInteractionContext
(
context
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#
l
x.
\n
"
,
hr
);
}
START_TEST
(
ninput
)
...
...
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