Skip to content

Commit bb65717

Browse files
author
iRobot ROS
authored
Merge pull request #42 from mauropasse/mauro/fix-ctests
Ctests fixes
2 parents 89b07f6 + a322119 commit bb65717

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

rclcpp/include/rclcpp/any_subscription_callback.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class AnySubscriptionCallback
187187
TRACEPOINT(callback_start, static_cast<const void *>(this), true);
188188

189189
// If the message is not valid, return.
190-
if(!message) {
190+
if (!message) {
191191
return;
192192
}
193193

@@ -216,7 +216,7 @@ class AnySubscriptionCallback
216216
TRACEPOINT(callback_start, static_cast<const void *>(this), true);
217217

218218
// If the message is not valid, return.
219-
if(!message) {
219+
if (!message) {
220220
return;
221221
}
222222

rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
9393
RCLCPP_ERROR(rclcpp::get_logger("rclcpp"), "Calling dequeue on empty intra-process buffer");
9494
// This situation can happen on the EventsExecutor if we have more events in the queue
9595
// than messages in the history cache (set by the qos_policies.depth of the subscription)
96-
// For example if we set depth=1 and we get 2 messages really fast (so no time for processing),
97-
// we could end up with 2 events in the queue but only 1 msg is actually stored on the buffer.
98-
// In this case we return an empty buffer.
96+
// For example if we set depth=1 and we get 2 messages really fast (so no time for
97+
// processing), we could end up with 2 events in the queue but only 1 msg is
98+
// actually stored on the buffer. In this case we return an empty buffer.
9999
return BufferT();
100100
}
101101

rclcpp/test/rclcpp/executors/test_events_queue.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
#include <gtest/gtest.h>
15+
1416
#include <chrono>
17+
#include <memory>
1518
#include <queue>
1619

17-
#include <gtest/gtest.h>
18-
1920
#include "rclcpp/experimental/buffers/simple_events_queue.hpp"
2021

2122
using namespace std::chrono_literals;

0 commit comments

Comments
 (0)