Skip to content

nolibc migration for tests (fixes #37)#149

Closed
DrDub wants to merge 1 commit intoSolo5:masterfrom
DrDub:master
Closed

nolibc migration for tests (fixes #37)#149
DrDub wants to merge 1 commit intoSolo5:masterfrom
DrDub:master

Conversation

@DrDub
Copy link
Copy Markdown

@DrDub DrDub commented Dec 21, 2016

This is modified copy of the freestanding nolibc,
per my understanding of the discussion in the bug
report.

What has been modified is the removal of the fmt_fp
function of vfprintf.c (with their corresponding flags
e, f, g and ) and the dependency on openlibm (which
means <math.h> is a noop).

The provided test cases tests solo5 memory allocation
by allocating various strings, growing them and deleting
them non-consecutively, with an eye on memory corruption.
I believe that was the main solo5 API left untested.

If this is in the right direction, I can expand this PR to remove
the code clones from nolibc in the other test cases, although
it might be better to restructure the test harness to link to this,
which might be better left to core contributors. Just let me know.

This is  modified copy of the freestanding nolibc.

What has been modified is the removal of the fmt_fp
function of vfprintf.c (with their corresponding flags
e, f, g and ) and the dependency on openlibm (which
means <math.h> is a noop).

The provided test cases tests solo5 malloc.
@mato
Copy link
Copy Markdown
Member

mato commented May 30, 2018

Historic, closing. malloc has since gone from the public API, so the immediate motivation for this is no longer there.

@mato mato closed this May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants