Merge lp:~sil2100/unity/more_arm_test_modifications into lp:unity

Proposed by Łukasz Zemczak
Status: Merged
Approved by: Stephen M. Webb
Approved revision: no longer in the source branch.
Merged at revision: 2950
Proposed branch: lp:~sil2100/unity/more_arm_test_modifications
Merge into: lp:unity
Diff against target: 33 lines (+3/-3)
2 files modified
tests/CMakeLists.txt (+1/-1)
tests/test_glib_source.cpp (+2/-2)
To merge this branch: bzr merge lp:~sil2100/unity/more_arm_test_modifications
Reviewer Review Type Date Requested Status
Stephen M. Webb (community) Approve
PS Jenkins bot continuous-integration Pending
Marco Trevisan (Treviño) Pending
Review via email: mp+137558@code.launchpad.net

Commit message

Disable TestAnimator tests, since we're getting rid of the Animator class anyway. Also, in the glib timeout tests - in MultipleShotsRun only check if the timeout is ran more than once, since this is the behavior we're interested in.

Description of the change

- Problem:

Still some tests are failing on ARM machines, resulting in a FTBFS.

- The fix:

This branch has two fixes:
First, and most important, we disable the TestAnimator tests in overall. After consulting with Martin and Stephen, we decided that this is the easiest way to be sure that the broken tests on ARM won't fail builds - since we're getting rid of the Animator class anyway.

Second, in the glib timeout tests, let's be even less strict and in MultipleShotsRun only check if it runs more than once. Since this is the behavior we're essentially testing. Not the number of times it should be executed in the time period.

- Tests:

N/A

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

Avoids the test for me. Need to run these tests on actual hardware, so let's get this merged.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/CMakeLists.txt'
--- tests/CMakeLists.txt 2012-12-03 12:49:46 +0000
+++ tests/CMakeLists.txt 2012-12-03 13:12:24 +0000
@@ -115,7 +115,7 @@
115# The actual test executable (xless) - do not put anything that requires X in here115# The actual test executable (xless) - do not put anything that requires X in here
116 set (GTEST_XLESS_SOURCES116 set (GTEST_XLESS_SOURCES
117 test_main_xless.cpp117 test_main_xless.cpp
118 test_animator.cpp118 #test_animator.cpp # XXX: disabled, to be removed completely soon
119 test_launcher_model.cpp119 test_launcher_model.cpp
120 test_glib_object.cpp120 test_glib_object.cpp
121 test_glib_object_utils.cpp121 test_glib_object_utils.cpp
122122
=== modified file 'tests/test_glib_source.cpp'
--- tests/test_glib_source.cpp 2012-11-30 20:22:13 +0000
+++ tests/test_glib_source.cpp 2012-12-03 13:12:24 +0000
@@ -150,7 +150,7 @@
150 bool removed_called = false;150 bool removed_called = false;
151151
152 {152 {
153 auto check_function = []() { return (callback_call_count < 6) ? false : true; };153 auto check_function = []() { return (callback_call_count > 1) ? true : false; };
154 Timeout timeout(100, &OnSourceCallbackContinue);154 Timeout timeout(100, &OnSourceCallbackContinue);
155 timeout.removed.connect([&] (unsigned int id) { removed_called = true; });155 timeout.removed.connect([&] (unsigned int id) { removed_called = true; });
156 Utils::WaitUntil(check_function, true, 1);156 Utils::WaitUntil(check_function, true, 1);
@@ -158,7 +158,7 @@
158 }158 }
159159
160 EXPECT_TRUE(callback_called);160 EXPECT_TRUE(callback_called);
161 EXPECT_GE(callback_call_count, 6);161 EXPECT_GT(callback_call_count, 1);
162 EXPECT_TRUE(removed_called);162 EXPECT_TRUE(removed_called);
163}163}
164164