Skip to content

pkg/libfixmath: replace __FILE__ by RIOT_FILE_NOPATH [backport 2018.07]#9657

Merged
miri64 merged 1 commit intoRIOT-OS:2018.07-branchfrom
cladmi:2018.07/pr/libfixmath/debug
Jul 31, 2018
Merged

pkg/libfixmath: replace __FILE__ by RIOT_FILE_NOPATH [backport 2018.07]#9657
miri64 merged 1 commit intoRIOT-OS:2018.07-branchfrom
cladmi:2018.07/pr/libfixmath/debug

Conversation

@cladmi
Copy link
Copy Markdown
Contributor

@cladmi cladmi commented Jul 31, 2018

Backport of #9643

Contribution description

Update the TEST macro to use our RIOT_FILE_RELATIVE RIOT_FILE_NOPATH macro.

The binary file size changes when the RIOT directory is moved.
This caused the libfixmath_unittests to fail on my computer.

This saves 1872 6632 bytes of rom for samr21-xpro on my computer.

Issues/PRs references

Same reasons as why the macro was introduced #2969
Found during release testing

@cladmi cladmi added Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tests Area: tests and testing framework labels Jul 31, 2018
@cladmi cladmi requested a review from ZetaR60 July 31, 2018 17:06
@cladmi
Copy link
Copy Markdown
Contributor Author

cladmi commented Jul 31, 2018

It is correctly building with docker for the nucleo-f030r8 board that failed before.

@cladmi
Copy link
Copy Markdown
Contributor Author

cladmi commented Jul 31, 2018

And tests still work for iotlab-m3.

@miri64 miri64 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 31, 2018
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jul 31, 2018

Needs rebase

ZetaR60
ZetaR60 previously approved these changes Jul 31, 2018
Copy link
Copy Markdown
Contributor

@ZetaR60 ZetaR60 left a comment

Choose a reason for hiding this comment

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

Looks good. Nothing else should have changed this from master.

EDIT: missed the rebase message.

The binary file size changes when the RIOT directory is moved.
This caused the `libfixmath_unittests` to fail on my computer.

I used RIOT_FILE_NOPATH instead of RIOT_FILE_RELATIVE as 'TEST' is used a lot
and it would allow more boards to be tested, full path is not that important.

(cherry picked from commit 7913dd9)
@cladmi cladmi force-pushed the 2018.07/pr/libfixmath/debug branch from ccede64 to aba573c Compare July 31, 2018 18:37
Copy link
Copy Markdown
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

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

Re-ACK after automatic dismiss due to rebase to protected release branch.

@miri64 miri64 merged commit 4ff03c1 into RIOT-OS:2018.07-branch Jul 31, 2018
@cladmi cladmi deleted the 2018.07/pr/libfixmath/debug branch July 31, 2018 19:41
@cladmi cladmi added this to the Release 2018.07 milestone Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: release backport Integration Process: The PR is a release backport of a change previously provided to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants