-
Notifications
You must be signed in to change notification settings - Fork 273
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
Added sanitizer testing for swss-common unit test. #561
base: master
Are you sure you want to change the base?
Conversation
@qiluo-msft |
@@ -10,6 +10,9 @@ endif | |||
|
|||
CFLAGS_GTEST = | |||
LDADD_GTEST = -L/usr/src/gtest -lgtest -lgtest_main | |||
CFLAGS_ASAN = -fsanitize=address -static-libasan | |||
CFLAGS_TSAN = -fsanitize=thread | |||
CFLAGS_USAN = -fsanitize=undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not combine them together? Even further, just integrate all the options to the original tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem to work if I combine them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you share the error message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address sanitizer cannot combine with thread sanitizer: https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
(Check "-fsanitize=address" or "-fsanitize=thread".)
321ea03
to
2388e9d
Compare
9d14c75
to
2388e9d
Compare
/azp run |
Commenter does not have sufficient privileges for PR 561 in repo Azure/sonic-swss-common |
@qiluo-msft |
swss-common: Added sanitizer testing for swss-common unit test.
Signed-off-by: Runming Wu [email protected]