-
Notifications
You must be signed in to change notification settings - Fork 141
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
Apply the "safe bool" idiom to ConfigureQueueStatus #350
Comments
I've started work on this one ^ |
A random test I picked, doesn't seem to be working for me. I think I'm missing something: After running make -C build/blazingmq bmqa_message.t And when I run the Am I supposed to run the bmqtool / broker in a separate shell so these tests "pass" ? ❯ build/blazingmq/src/groups/bmq/bmqa_message.t.tsk
TEST /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.t.cpp CASE 0
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(240): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(263): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(317): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(384): isInitialized() && "message is invalid: use " "'MessageEventBuilder::startMessage' to get one" (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(394): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(431): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(453): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(240): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(263): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(317): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(384): isInitialized() && "message is invalid: use " "'MessageEventBuilder::startMessage' to get one" (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(394): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(431): isInitialized() (failed)
Error /Users/vinay/coding/blazingmq/src/groups/bmq/bmqa/bmqa_message.cpp(453): isInitialized() (failed) |
All the
BlazingMQ tests are passed to a helper script to run BDE-style tests correctly. As invoked, the test case being run is specifically checking for errors from using |
blazingmq/src/groups/bmq/bmqa/bmqa_configurequeuestatus.h
Line 109 in c71d6c5
The implicit
operator bool
conversion is not particularly safe, we prefer the unspecified bool type to help prevent implicit conversions to integral types. We do this forCloseQueueStatus
, but we seemed to have missed it for this class.The text was updated successfully, but these errors were encountered: