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
1=== modified file 'tests/CMakeLists.txt'
2--- tests/CMakeLists.txt 2012-12-03 12:49:46 +0000
3+++ tests/CMakeLists.txt 2012-12-03 13:12:24 +0000
4@@ -115,7 +115,7 @@
5 # The actual test executable (xless) - do not put anything that requires X in here
6 set (GTEST_XLESS_SOURCES
7 test_main_xless.cpp
8- test_animator.cpp
9+ #test_animator.cpp # XXX: disabled, to be removed completely soon
10 test_launcher_model.cpp
11 test_glib_object.cpp
12 test_glib_object_utils.cpp
13
14=== modified file 'tests/test_glib_source.cpp'
15--- tests/test_glib_source.cpp 2012-11-30 20:22:13 +0000
16+++ tests/test_glib_source.cpp 2012-12-03 13:12:24 +0000
17@@ -150,7 +150,7 @@
18 bool removed_called = false;
19
20 {
21- auto check_function = []() { return (callback_call_count < 6) ? false : true; };
22+ auto check_function = []() { return (callback_call_count > 1) ? true : false; };
23 Timeout timeout(100, &OnSourceCallbackContinue);
24 timeout.removed.connect([&] (unsigned int id) { removed_called = true; });
25 Utils::WaitUntil(check_function, true, 1);
26@@ -158,7 +158,7 @@
27 }
28
29 EXPECT_TRUE(callback_called);
30- EXPECT_GE(callback_call_count, 6);
31+ EXPECT_GT(callback_call_count, 1);
32 EXPECT_TRUE(removed_called);
33 }
34