Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
369e7fd1
Commit
369e7fd1
authored
7 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
tests/unix/extra_coverage: Add test for mp_vprintf with bad fmt spec.
parent
adf22c19
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/unix/extra_coverage.py.exp
+1
-0
1 addition, 0 deletions
tests/unix/extra_coverage.py.exp
unix/coverage.c
+1
-0
1 addition, 0 deletions
unix/coverage.c
with
2 additions
and
0 deletions
tests/unix/extra_coverage.py.exp
+
1
−
0
View file @
369e7fd1
...
...
@@ -11,6 +11,7 @@ false true
2147483648
80000000
80000000
abc
# vstr
tests
sts
...
...
This diff is collapsed.
Click to expand it.
unix/coverage.c
+
1
−
0
View file @
369e7fd1
...
...
@@ -154,6 +154,7 @@ STATIC mp_obj_t extra_coverage(void) {
mp_printf
(
&
mp_plat_print
,
"%u
\n
"
,
0x80000000
);
// should print unsigned
mp_printf
(
&
mp_plat_print
,
"%x
\n
"
,
0x80000000
);
// should print unsigned
mp_printf
(
&
mp_plat_print
,
"%X
\n
"
,
0x80000000
);
// should print unsigned
mp_printf
(
&
mp_plat_print
,
"abc
\n
%"
);
// string ends in middle of format specifier
}
// vstr
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment