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

i19: ut-core: Feature to support UT_ASSERT_CALLBACK() compare fail with callback #19

Open
Ulrond opened this issue Jan 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ulrond
Copy link
Contributor

Ulrond commented Jan 26, 2024

Consider adding support for which will remove the what was trying to be captured in the plat_power tests.

test_l1_plat_power.c

#define PLAT_ASSERT_AUTO_TERM_NUMERICAL(value, comparison){\
      if(value != comparison){\
	        UT_LOG("\n In %s Comparison: [%d = %d]\n", __FUNCTION__, value, comparison);\
		PLAT_TERM();\
		UT_FAIL_FATAL();\
      }\
}\

If we consider something like this

UT_ASSERT_WITH_CALLBACK_ON_FAIL( value==comparsion, &callOnFailFunction)

It may make the code more readable

@Ulrond Ulrond added the enhancement New feature or request label Jan 26, 2024
@Ulrond Ulrond moved this to Todo in UT-Core Roadmap Feb 7, 2024
@Ulrond Ulrond changed the title Feature to support UT_ASSERT_CALLBACK() compare fail with callback i19: ut-core: Feature to support UT_ASSERT_CALLBACK() compare fail with callback Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants