diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-03 14:45:45 -0700 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-17 10:15:04 +0900 |
commit | a045f296aec44357ccc47a37b8263b0659c9cb59 (patch) | |
tree | 50e7260b06dcf05c8dd7936daeef1c14fcedfb6d | |
parent | 7823d6cfc3a02078440c4f4cf8fa777ee9aeb6ec (diff) | |
download | wayland-ivi-extension-a045f296aec44357ccc47a37b8263b0659c9cb59.tar.gz |
test: Fix out of range error.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rw-r--r-- | ivi-layermanagement-api/test/ilm_control_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ivi-layermanagement-api/test/ilm_control_test.cpp b/ivi-layermanagement-api/test/ilm_control_test.cpp index 25a51da..066e5ce 100644 --- a/ivi-layermanagement-api/test/ilm_control_test.cpp +++ b/ivi-layermanagement-api/test/ilm_control_test.cpp @@ -1268,7 +1268,7 @@ TEST_F(IlmCommandTest, DisplaySetRenderOrder_shrinking) { ilmScreenProperties screenProps; //trying different render orders with decreasing sizes - for (unsigned int j = 0; j <= layerCount; ++j) + for (unsigned int j = 0; j < layerCount; ++j) { //put them from end to beginning, so that in each loop iteration the order of layers change ASSERT_EQ(ILM_SUCCESS, ilm_displaySetRenderOrder(screen, renderOrder + j, layerCount - j)); @@ -1384,7 +1384,7 @@ TEST_F(IlmCommandTest, LayerSetRenderOrder_shrinking) { t_ilm_surface* layerSurfaceIDs; //trying different render orders with decreasing sizes - for (unsigned int j = 0; j <= layerCount; ++j) + for (unsigned int j = 0; j < layerCount; ++j) { //put them from end to beginning, so that in each loop iteration the order of surafces change ASSERT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder + j, surfaceCount - j)); |