Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5752d483
Commit
5752d483
authored
Mar 21, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms/tests: Fix test failures on Wine when color profiles are present.
parent
9a795c52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
profile.c
dlls/mscms/tests/profile.c
+23
-4
No files found.
dlls/mscms/tests/profile.c
View file @
5752d483
...
...
@@ -122,6 +122,8 @@ static const WCHAR profile2W[] =
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
'\\'
,
's'
,
'r'
,
'g'
,
'b'
,
' '
,
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
' '
,
's'
,
'p'
,
'a'
,
'c'
,
'e'
,
' '
,
'p'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'i'
,
'c'
,
'm'
,
0
};
static
BOOL
have_color_profile
;
static
const
unsigned
char
rgbheader
[]
=
{
0x48
,
0x0c
,
0x00
,
0x00
,
0x6f
,
0x6e
,
0x69
,
0x4c
,
0x00
,
0x00
,
0x10
,
0x02
,
0x72
,
0x74
,
0x6e
,
0x6d
,
0x20
,
0x42
,
0x47
,
0x52
,
0x20
,
0x5a
,
0x59
,
0x58
,
...
...
@@ -669,7 +671,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
ok
(
!
ret
,
"EnumColorProfilesA() succeeded (%d)
\n
"
,
GetLastError
()
);
ret
=
pEnumColorProfilesA
(
NULL
,
&
record
,
buffer
,
&
size
,
&
number
);
if
(
standard
profile
)
if
(
have_color_
profile
)
ok
(
ret
,
"EnumColorProfilesA() failed (%d)
\n
"
,
GetLastError
()
);
else
todo_wine
ok
(
ret
,
"EnumColorProfilesA() failed (%d)
\n
"
,
GetLastError
()
);
...
...
@@ -683,7 +685,7 @@ static void test_EnumColorProfilesA( char *standardprofile )
size
=
total
;
ret
=
pEnumColorProfilesA
(
NULL
,
&
record
,
buffer
,
&
size
,
&
number
);
if
(
standard
profile
)
if
(
have_color_
profile
)
ok
(
ret
,
"EnumColorProfilesA() failed (%d)
\n
"
,
GetLastError
()
);
else
todo_wine
ok
(
ret
,
"EnumColorProfilesA() failed (%d)
\n
"
,
GetLastError
()
);
...
...
@@ -723,7 +725,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
ok
(
!
ret
,
"EnumColorProfilesW() succeeded (%d)
\n
"
,
GetLastError
()
);
ret
=
pEnumColorProfilesW
(
NULL
,
&
record
,
buffer
,
&
size
,
&
number
);
if
(
standardprofileW
)
if
(
have_color_profile
)
ok
(
ret
,
"EnumColorProfilesW() failed (%d)
\n
"
,
GetLastError
()
);
else
todo_wine
ok
(
ret
,
"EnumColorProfilesW() failed (%d)
\n
"
,
GetLastError
()
);
...
...
@@ -736,7 +738,7 @@ static void test_EnumColorProfilesW( WCHAR *standardprofileW )
size
=
total
;
ret
=
pEnumColorProfilesW
(
NULL
,
&
record
,
buffer
,
&
size
,
&
number
);
if
(
standardprofileW
)
if
(
have_color_profile
)
ok
(
ret
,
"EnumColorProfilesW() failed (%d)
\n
"
,
GetLastError
()
);
else
todo_wine
ok
(
ret
,
"EnumColorProfilesW() failed (%d)
\n
"
,
GetLastError
()
);
...
...
@@ -1317,6 +1319,21 @@ static void test_AssociateColorProfileWithDeviceA( char *testprofile )
}
}
static
BOOL
have_profile
(
void
)
{
char
glob
[
MAX_PATH
+
sizeof
(
"
\\
*.icm"
)];
DWORD
size
=
MAX_PATH
;
HANDLE
handle
;
WIN32_FIND_DATAA
data
;
if
(
!
pGetColorDirectoryA
(
NULL
,
glob
,
&
size
))
return
FALSE
;
lstrcatA
(
glob
,
"
\\
*.icm"
);
handle
=
FindFirstFileA
(
glob
,
&
data
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
FindClose
(
handle
);
return
TRUE
;
}
START_TEST
(
profile
)
{
UINT
len
;
...
...
@@ -1392,6 +1409,8 @@ START_TEST(profile)
}
}
have_color_profile
=
have_profile
();
test_GetColorDirectoryA
();
test_GetColorDirectoryW
();
...
...
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