Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
79563137
Commit
79563137
authored
Mar 02, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix non-portable test of %p in unit test my_vsnprintf
parent
5cfa1ed1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
unittest/mysys/my_vsnprintf-t.c
unittest/mysys/my_vsnprintf-t.c
+4
-1
No files found.
unittest/mysys/my_vsnprintf-t.c
View file @
79563137
...
@@ -110,8 +110,11 @@ int main(void)
...
@@ -110,8 +110,11 @@ int main(void)
test1
(
"Positional arguments octal: <7777>"
,
test1
(
"Positional arguments octal: <7777>"
,
"Positional arguments octal: <%1$o>"
,
07777
);
"Positional arguments octal: <%1$o>"
,
07777
);
/* Can't use int arguments, as they may be different size from pointers */
test1
(
"Padding and %p <0x12> <0x034> <0x0000ab> < 0xcd>"
,
test1
(
"Padding and %p <0x12> <0x034> <0x0000ab> < 0xcd>"
,
"Padding and %%p <%04p> <%05p> <%08p> <%8p>"
,
0x12
,
0x34
,
0xab
,
0xcd
);
"Padding and %%p <%04p> <%05p> <%08p> <%8p>"
,
(
void
*
)
0x12
,
(
void
*
)
0x34
,
(
void
*
)
0xab
,
(
void
*
)
0xcd
);
test1
(
"F with a width (ignored) and precision: <12.34568>"
,
test1
(
"F with a width (ignored) and precision: <12.34568>"
,
"F with a width (ignored) and precision: <%10.5f>"
,
12
.
3456789
);
"F with a width (ignored) and precision: <%10.5f>"
,
12
.
3456789
);
...
...
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