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

sanitycheck: default to assertions being enabled #5841

Merged
merged 1 commit into from Jan 26, 2018

Conversation

galak
Copy link
Collaborator

@galak galak commented Jan 26, 2018

Changed the default behavior for when we run sanitycheck to match the -R
flag that turns on assertions. Introduced a --disable-asserts option if
we desire to explicitly turn of asserts.

This matches behavior that our CI builds have been doing and addresses
part of #5726.

Signed-off-by: Kumar Gala kumar.gala@linaro.org

Changed the default behavior for when we run sanitycheck to match the -R
flag that turns on assertions.  Introduced a --disable-asserts option if
we desire to explicitly turn of asserts.

This matches behavior that our CI builds have been doing and addresses
part of zephyrproject-rtos#5726.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
@codecov-io
Copy link

Codecov Report

Merging #5841 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5841      +/-   ##
==========================================
- Coverage   54.33%   54.32%   -0.02%     
==========================================
  Files         457      457              
  Lines       43298    43298              
  Branches     8302     8302              
==========================================
- Hits        23528    23523       -5     
- Misses      19631    19636       +5     
  Partials      139      139
Impacted Files Coverage Δ
tests/kernel/obj_tracing/src/philosopher.c 72.22% <0%> (-27.78%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6bedd7...d16ae16. Read the comment docs.

@nashif nashif merged commit 0d48cbe into zephyrproject-rtos:master Jan 26, 2018
help="Build all test cases with assertions enabled. "
"Default to assertions being enabled.")
parser.add_argument("--disable-asserts", action="store_false",
dest="enable_asserts",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is much better than what I came up with for switching between make and Ninja. Was not aware that two arguments could have the same 'dest'.

@galak galak deleted the assert-sanitycheck branch January 29, 2018 16:45
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.

None yet

5 participants