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
a35ff565
Commit
a35ff565
authored
Sep 20, 2006
by
Benjamin Arai
Committed by
Alexandre Julliard
Sep 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Adds test to check if basic "JOIN" operator without "WHERE" clause returns…
msi: Adds test to check if basic "JOIN" operator without "WHERE" clause returns the correct results.
parent
8d921f1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
db.c
dlls/msi/tests/db.c
+64
-0
No files found.
dlls/msi/tests/db.c
View file @
a35ff565
...
...
@@ -1776,6 +1776,14 @@ struct join_res
const
CHAR
two
[
MAX_PATH
];
};
struct
join_res_4col
{
const
CHAR
one
[
MAX_PATH
];
const
CHAR
two
[
MAX_PATH
];
const
CHAR
three
[
MAX_PATH
];
const
CHAR
four
[
MAX_PATH
];
};
static
const
struct
join_res
join_res_first
[]
=
{
{
"alveolar"
,
"procerus"
},
...
...
@@ -1824,6 +1832,16 @@ static const struct join_res join_res_seventh[] =
{
"malar"
,
"nasalis"
},
};
static
const
struct
join_res_4col
join_res_eighth
[]
=
{
{
"msvcp.dll"
,
"msvcp.dll.01234"
,
"msvcp.dll.01234"
,
"abcdefgh"
},
{
"msvcr.dll"
,
"msvcr.dll.56789"
,
"msvcp.dll.01234"
,
"abcdefgh"
},
{
"msvcp.dll"
,
"msvcp.dll.01234"
,
"msvcr.dll.56789"
,
"ijklmnop"
},
{
"msvcr.dll"
,
"msvcr.dll.56789"
,
"msvcr.dll.56789"
,
"ijklmnop"
},
{
"msvcp.dll"
,
"msvcp.dll.01234"
,
"single.dll.31415"
,
"msvcp.dll"
},
{
"msvcr.dll"
,
"msvcr.dll.56789"
,
"single.dll.31415"
,
"msvcp.dll"
},
};
static
void
test_join
(
void
)
{
MSIHANDLE
hdb
,
hview
,
hrec
;
...
...
@@ -2222,6 +2240,52 @@ static void test_join(void)
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
query
=
"SELECT `StdDlls`.`File`, `Binary`.`Data` "
"FROM `StdDlls`, `Binary` "
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
hview
);
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"failed to open view: %d
\n
"
,
r
);
}
r
=
MsiViewExecute
(
hview
,
0
);
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"failed to execute view: %d
\n
"
,
r
);
}
i
=
0
;
while
((
r
=
MsiViewFetch
(
hview
,
&
hrec
))
==
ERROR_SUCCESS
)
{
count
=
MsiRecordGetFieldCount
(
hrec
);
ok
(
count
==
2
,
"Expected 2 record fields, got %d
\n
"
,
count
);
size
=
MAX_PATH
;
r
=
MsiRecordGetString
(
hrec
,
1
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get record string: %d
\n
"
,
r
);
ok
(
!
lstrcmp
(
buf
,
join_res_eighth
[
i
].
one
),
"For (row %ld, column 1) expected '%s', got %s
\n
"
,
i
,
join_res_eighth
[
i
].
one
,
buf
);
size
=
MAX_PATH
;
r
=
MsiRecordGetString
(
hrec
,
2
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get record string: %d
\n
"
,
r
);
ok
(
!
lstrcmp
(
buf
,
join_res_eighth
[
i
].
four
),
"For (row %ld, column 2) expected '%s', got %s
\n
"
,
i
,
join_res_eighth
[
i
].
four
,
buf
);
i
++
;
MsiCloseHandle
(
hrec
);
}
todo_wine
{
ok
(
i
==
6
,
"Expected 6 rows, got %ld
\n
"
,
i
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"expected no more items: %d
\n
"
,
r
);
}
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
}
...
...
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