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

Extend tests for RTOS Thread class #4620

Merged
merged 5 commits into from Jul 17, 2017
Merged

Conversation

bulislaw
Copy link
Member

@bulislaw bulislaw commented Jun 22, 2017

Description

During the CMSIS/RTX update, it became obvious that our test coverage is quite poor. This PR tries to extend tests to all Thread functions. It also fixes issues found during tests development.

Status

READY

@bulislaw
Copy link
Member Author

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 614

Build failed!

@bulislaw
Copy link
Member Author

/morph test

Copy link
Member

@pan- pan- left a comment

Choose a reason for hiding this comment

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

Good initiative 👍 . Would it be possible to document precisely what every case test ? given, when, then structure might help to structure formally context, operation tested and expected result.

Another point, maybe it would be interresting to plug our tests with the RTX event system to do even more verifications.

@@ -108,37 +108,302 @@ void test_self_terminate() {
delete thread;
}

void wait_set_signal(Thread *t) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to split out cases and group together in a class various functions involved during the test case ?

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 627

Test failed!

@bulislaw
Copy link
Member Author

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 660

Test failed!

@bulislaw bulislaw changed the title [RFC] Extend tests for RTOS Thread class Extend tests for RTOS Thread class Jun 29, 2017
@bulislaw
Copy link
Member Author

/morph test

@bulislaw
Copy link
Member Author

@0xc0170 please review

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 688

All builds and test passed!

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

if you can fix void test_thread_wait() { , { on the new line

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2017

Good initiative 👍 . Would it be possible to document precisely what every case test ? given, when, then structure might help to structure formally context, operation tested and expected result.

I believe this was addressed, happy @pan- with this patch?

@theotherjimmy
Copy link
Contributor

@pan- Could you review?

@bulislaw
Copy link
Member Author

@pan- @0xc0170 ping!

@theotherjimmy
Copy link
Contributor

@pan- Could you review?

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.

None yet

5 participants