Skip to content

test: pipeline_free#319

Merged
lgirdwood merged 1 commit intothesofproject:masterfrom
dabekjakub:temp_pipeline_free
Sep 7, 2018
Merged

test: pipeline_free#319
lgirdwood merged 1 commit intothesofproject:masterfrom
dabekjakub:temp_pipeline_free

Conversation

@dabekjakub
Copy link
Copy Markdown
Member

Added tests for pipeline free and underlining static functions.
Also refactored previously added tests to incorporate code reuse.

Signed-off-by: Jakub Dabek jakub.dabek@linux.intel.com

@lgirdwood lgirdwood requested a review from jajanusz September 6, 2018 13:55
Copy link
Copy Markdown
Contributor

@jajanusz jajanusz left a comment

Choose a reason for hiding this comment

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

Just one hint in comments for the future.
Good job.
👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You use setup and teardown for group that is not linked at all - it looks like you reset state in every test.
To show intent and 'scope' of state it would be better to use cmocka_unit_test_setup_teardown in the future for cases like this. Group setup is better for flow when test2 depends on test1 etc.

Added tests for pipeline free and underlining static functions.
Also refactored previously added tests to incorporate code reuse.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
@lgirdwood lgirdwood merged commit a81c919 into thesofproject:master Sep 7, 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.

3 participants