From f66a9863c2b5d29ee2d3c57b65a0aecc9656c59c Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 21 Oct 2015 00:42:37 +0200 Subject: ucoo/utils/fifo: ensure there is room for size elements --- ucoo/utils/test/test_fifo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ucoo/utils/test/test_fifo.cc') diff --git a/ucoo/utils/test/test_fifo.cc b/ucoo/utils/test/test_fifo.cc index dd9aa8e..027fdd5 100644 --- a/ucoo/utils/test/test_fifo.cc +++ b/ucoo/utils/test/test_fifo.cc @@ -32,7 +32,7 @@ main (int argc, const char **argv) ucoo::TestSuite tsuite ("fifo"); { ucoo::Test test (tsuite, "push pop"); - ucoo::Fifo fifo; + ucoo::Fifo fifo; fifo.push (1); fifo.push (2); fifo.push (3); @@ -41,7 +41,7 @@ main (int argc, const char **argv) } { ucoo::Test test (tsuite, "full empty"); - ucoo::Fifo fifo; + ucoo::Fifo fifo; do { test_fail_break_unless (test, fifo.empty () && !fifo.full ()); @@ -55,7 +55,7 @@ main (int argc, const char **argv) } { ucoo::Test test (tsuite, "write read"); - ucoo::Fifo fifo; + ucoo::Fifo fifo; static const int b[] = { 1, 2, 3, 4, 5 }; int c[8]; int r; -- cgit v1.2.3