Make check fails because Februari has 31 days

Bug #1273892 reported by Tim Peeters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
New
Critical
Zsombor Egri

Bug Description

When I run 'make check' on current trunk, I get this:

Executing ./tst_components -platform minimal -input tst_dateutils.qml -maxwarnings 20 -o ../../test_tst_dateutils.qml.xml,xunitxml -o -,txt
********* Start testing of components *********
Config: Using QTest library 5.0.2, Qt 5.0.2
PASS : components::DateUtilsAPI::initTestCase()
PASS : components::DateUtilsAPI::test_0isValid()
PASS : components::DateUtilsAPI::test_daysInMonth(row 0)
FAIL! : components::DateUtilsAPI::test_daysInMonth(row 1) daysInMonth() failed for month 2
   Actual (): 31
   Expected (): 28
   Loc: [/home/tim/dev/ubuntu-ui-toolkit/trunk/tests/unit/tst_components/tst_dateutils.qml(81)]
PASS : components::DateUtilsAPI::test_daysInMonth(row 2)
PASS : components::DateUtilsAPI::test_daysInMonth(row 3)
PASS : components::DateUtilsAPI::test_daysInMonth(row 4)
PASS : components::DateUtilsAPI::test_daysInMonth(row 5)
PASS : components::DateUtilsAPI::test_daysInMonth(row 6)
PASS : components::DateUtilsAPI::test_daysInMonth(row 7)
PASS : components::DateUtilsAPI::test_daysInMonth(row 8)
PASS : components::DateUtilsAPI::test_daysInMonth(row 9)
PASS : components::DateUtilsAPI::test_daysInMonth(row 10)
PASS : components::DateUtilsAPI::test_daysInMonth(row 11)
PASS : components::DateUtilsAPI::test_daysTo(row 0)
PASS : components::DateUtilsAPI::test_daysTo(row 1)
PASS : components::DateUtilsAPI::test_daysTo(row 2)
PASS : components::DateUtilsAPI::test_daysTo(row 3)
PASS : components::DateUtilsAPI::test_daysTo(row 4)
PASS : components::DateUtilsAPI::test_daysTo(row 5)
PASS : components::DateUtilsAPI::test_getInvalidDate()
PASS : components::DateUtilsAPI::test_getWeek(row 0)
PASS : components::DateUtilsAPI::test_getWeek(row 1)
PASS : components::DateUtilsAPI::test_getWeek(row 2)
PASS : components::DateUtilsAPI::test_getWeek(row 3)
PASS : components::DateUtilsAPI::test_getWeek(row 4)
PASS : components::DateUtilsAPI::test_leapYear(row 0)
PASS : components::DateUtilsAPI::test_leapYear(row 1)
PASS : components::DateUtilsAPI::test_leapYear(row 2)
PASS : components::DateUtilsAPI::test_leapYear(row 3)
PASS : components::DateUtilsAPI::test_midnight()
PASS : components::DateUtilsAPI::test_monthsTo(row 0)
PASS : components::DateUtilsAPI::test_monthsTo(row 1)
PASS : components::DateUtilsAPI::test_monthsTo(row 2)
PASS : components::DateUtilsAPI::test_monthsTo(row 3)
PASS : components::DateUtilsAPI::test_monthsTo(row 4)
PASS : components::DateUtilsAPI::cleanupTestCase()
Totals: 36 passed, 1 failed, 0 skipped
********* Finished testing of components *********
make[3]: *** [check] Error 1
make[3]: Leaving directory `/home/tim/dev/ubuntu-ui-toolkit/trunk/tests/unit/tst_components'
make[2]: *** [sub-tst_components-check] Error 2
make[2]: Leaving directory `/home/tim/dev/ubuntu-ui-toolkit/trunk/tests/unit'
make[1]: *** [sub-unit-check] Error 2
make[1]: Leaving directory `/home/tim/dev/ubuntu-ui-toolkit/trunk/tests'
make: *** [sub-tests-check] Error 2
tim@ideapad:~/dev/ubuntu-ui-toolkit/trunk$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.