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
dmclock: Don't dump core when using EXPECT_DEATH_IF_SUPPORTED #25
Conversation
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.
I was wondering if you'd looked at ceph's src/include/coredumpctl.h . It uses C++'s RAII idiom, so the alterations to the testing code are minimal. Only one lines needs to be added to each test rather than eight.
What are your thoughts?
@ivancich you stated you didn't want to use that and it was I that suggested it originally? |
Sorry, I guess I wasn't clear. What I meant is that we could not include that specific file since it exists within ceph and not the dmclock library. I have no problem with the implementation, though. Sorry for the confusion. |
No problem, will take another run at this shortly. |
349abbb
to
cf91140
Compare
@ivancich like this? |
test/test_dmclock_server.cc
Outdated
#ifdef HAVE_SYS_PRCTL_H | ||
#include <iostream> | ||
#include <sys/prctl.h> | ||
#include "common/errno.h" |
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.
common/errno.h is specific to the ceph build tree. dmclock needs to build independently (i.e., "git clone git@github.com:ceph/dmclock.git" and then build). I tried removing this #include and it seemed to build and run tests and the simulation. The build system had /usr/include/sys/prctl.h and according to CMakeCache.txt "HAVE_SYS_PRCTL_H:INTERNAL=1". So is that #include necessary?
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.
I'm currently do a full ceph build and test.
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.
Sorry, should have changed this to <errno.h>
Fixes: http://tracker.ceph.com/issues/19979 Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
cf91140
to
ee1866e
Compare
Fixes: http://tracker.ceph.com/issues/19979
Signed-off-by: Brad Hubbard bhubbard@redhat.com