Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microlib: Disable feof function usage in general filesystem test #12111

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Dec 16, 2019

Summary of changes

feof function is not supported in Microlib library refer "http://arminfo.emea.arm.com/help/index.jsp?topic=/com.arm.doc.100073_0612_00_en/chr1358938938431.html" for more info. so disabling all the feof function usage in the green tea test.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@evedon @hugueskamba


@@ -105,7 +105,12 @@ int lfs_emubd_read(const struct lfs_config *cfg, lfs_block_t block,
}

size_t res = fread(data, 1, size, f);
if (res < size && !feof(f)) {
if (res < size
#if !defined(__MICROLIB)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this && !feof(f) test should ever be there.

Why would it be valid to attempt to read off the end of the file?

Copy link
Contributor Author

@rajkan01 rajkan01 Dec 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed with Kevin this feof check seems to be wrong but I will revert this changes as build system ignores this emubd due to .mbedignore.

@ciarmcom ciarmcom requested review from evedon, hugueskamba and a team December 16, 2019 12:00
@ciarmcom
Copy link
Member

@rajkan01, thank you for your changes.
@hugueskamba @evedon @ARMmbed/mbed-os-storage @ARMmbed/mbed-os-maintainers please review.

@rajkan01 rajkan01 changed the title feof function call disabled in general filesystem green tea test and littlefs filesystem Microlib: Disable feof function call in general filesystem green tea test Dec 16, 2019
@rajkan01 rajkan01 changed the title Microlib: Disable feof function call in general filesystem green tea test Microlib: Disable feof function call in general filesystem test Dec 16, 2019
@rajkan01 rajkan01 changed the title Microlib: Disable feof function call in general filesystem test Microlib: Disable feof function usage in general filesystem test Dec 16, 2019
feof function is not supported in Microlib library. so disabling all the feof function usage in the green tea test.
@kjbracey
Copy link
Contributor

CI started

@mbed-ci
Copy link

mbed-ci commented Dec 17, 2019

Test run: SUCCESS

Summary: 5 of 5 test jobs passed
Build number : 1
Build artifacts

@adbridge adbridge merged commit 3091834 into ARMmbed:master Dec 17, 2019
@adbridge adbridge added release-version: 6.0.0-alpha-1 First pre-release version of 6.0.0 and removed ready for merge labels Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-version: 6.0.0-alpha-1 First pre-release version of 6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants