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
a3c1fbae
Commit
a3c1fbae
authored
Jun 29, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Use standard wine_dbgstr_longlong.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2f26690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
file.c
dlls/ntdll/tests/file.c
+9
-19
No files found.
dlls/ntdll/tests/file.c
View file @
a3c1fbae
...
...
@@ -87,16 +87,6 @@ static inline BOOL is_signaled( HANDLE obj )
return
WaitForSingleObject
(
obj
,
0
)
==
WAIT_OBJECT_0
;
}
static
const
char
*
debugstr_longlong
(
ULONGLONG
ll
)
{
static
char
str
[
17
];
if
(
sizeof
(
ll
)
>
sizeof
(
unsigned
long
)
&&
ll
>>
32
)
sprintf
(
str
,
"%lx%08lx"
,
(
unsigned
long
)(
ll
>>
32
),
(
unsigned
long
)
ll
);
else
sprintf
(
str
,
"%lx"
,
(
unsigned
long
)
ll
);
return
str
;
}
#define TEST_BUF_LEN 3
static
HANDLE
create_temp_file
(
ULONG
flags
)
...
...
@@ -1134,10 +1124,10 @@ static void test_file_full_size_information(void)
/* Test for FileFsSizeInformation */
ok
(
fsi
.
TotalAllocationUnits
.
QuadPart
>
0
,
"[fsi] TotalAllocationUnits expected positive, got 0x%s
\n
"
,
debu
gstr_longlong
(
fsi
.
TotalAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
fsi
.
TotalAllocationUnits
.
QuadPart
));
ok
(
fsi
.
AvailableAllocationUnits
.
QuadPart
>
0
,
"[fsi] AvailableAllocationUnits expected positive, got 0x%s
\n
"
,
debu
gstr_longlong
(
fsi
.
AvailableAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
fsi
.
AvailableAllocationUnits
.
QuadPart
));
/* Assume file system is NTFS */
ok
(
fsi
.
BytesPerSector
==
512
,
"[fsi] BytesPerSector expected 512, got %d
\n
"
,
fsi
.
BytesPerSector
);
...
...
@@ -1147,21 +1137,21 @@ static void test_file_full_size_information(void)
{
ok
(
ffsi
.
TotalAllocationUnits
.
QuadPart
>
0
,
"[ffsi] TotalAllocationUnits expected positive, got negative value 0x%s
\n
"
,
debu
gstr_longlong
(
ffsi
.
TotalAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
ffsi
.
TotalAllocationUnits
.
QuadPart
));
ok
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
>
0
,
"[ffsi] CallerAvailableAllocationUnits expected positive, got negative value 0x%s
\n
"
,
debu
gstr_longlong
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
));
ok
(
ffsi
.
ActualAvailableAllocationUnits
.
QuadPart
>
0
,
"[ffsi] ActualAvailableAllocationUnits expected positive, got negative value 0x%s
\n
"
,
debu
gstr_longlong
(
ffsi
.
ActualAvailableAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
ffsi
.
ActualAvailableAllocationUnits
.
QuadPart
));
ok
(
ffsi
.
TotalAllocationUnits
.
QuadPart
==
fsi
.
TotalAllocationUnits
.
QuadPart
,
"[ffsi] TotalAllocationUnits error fsi:0x%s, ffsi:0x%s
\n
"
,
debu
gstr_longlong
(
fsi
.
TotalAllocationUnits
.
QuadPart
),
debu
gstr_longlong
(
ffsi
.
TotalAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
fsi
.
TotalAllocationUnits
.
QuadPart
),
wine_db
gstr_longlong
(
ffsi
.
TotalAllocationUnits
.
QuadPart
));
ok
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
==
fsi
.
AvailableAllocationUnits
.
QuadPart
,
"[ffsi] CallerAvailableAllocationUnits error fsi:0x%s, ffsi: 0x%s
\n
"
,
debu
gstr_longlong
(
fsi
.
AvailableAllocationUnits
.
QuadPart
),
debu
gstr_longlong
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
));
wine_db
gstr_longlong
(
fsi
.
AvailableAllocationUnits
.
QuadPart
),
wine_db
gstr_longlong
(
ffsi
.
CallerAvailableAllocationUnits
.
QuadPart
));
}
/* Assume file system is NTFS */
...
...
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