Skip to content

tests-events-timing: print debug info only in case of failure #6135

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

Merged

Conversation

mprse
Copy link
Contributor

@mprse mprse commented Feb 19, 2018

Description

In the Testing accuracy of equeue semaphore test case result is printed out in each loop iteration. This gives lots of prints during test case execution.
Since debug prints should not exist in the final test version I suggest to print information only in case of failure.
Additionally time needed to print single info is about ~25 ms (K64F/GCC_ARM). The while loop is designed to execute until 20000 ms elapses, so this print has also impact on number of times the loop is executed (number of semaphore accuracy checks).

Status

READY

Migrations

NO

In the 'Testing accuracy of equeue semaphore' test case result is printed out in each loop iteration.
Since debug prints should not exist in the final test version I suggest to print information only in case of failure.
Additionally time needed to print single info is equal to ~25 ms (K64F/GCC_ARM). The while loop is designed to execute until 20000 ms elapses, so this print has also impact on number of times the loop is executed (number of semaphore accuracy checks).
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 19, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 19, 2018

Build : SUCCESS

Build number : 1168
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6135/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Feb 19, 2018

@mbed-ci
Copy link

mbed-ci commented Feb 19, 2018

@0xc0170 0xc0170 merged commit acd1895 into ARMmbed:master Feb 19, 2018
@0xc0170 0xc0170 changed the title tests-events-timing - print debug info only in case of failure. tests-events-timing: print debug info only in case of failure Feb 19, 2018
@mbed-ci
Copy link

mbed-ci commented Feb 19, 2018

Exporter Build : FAILURE

Build number : 850
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/exporter/6135/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants