diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2014-02-04 16:27:04 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-04 22:05:23 +0100 |
commit | 53cdda75a98b1d307294b7d773f61b1809b8ac0e (patch) | |
tree | b222383c8579cd352f61fd85a78b4f2e031a7617 /tests | |
parent | 469c56af0d868fb52661b54adf6905aaf364f5f9 (diff) | |
download | qtlocation-53cdda75a98b1d307294b7d773f61b1809b8ac0e.tar.gz |
Reject negative number of alternative routes.
Requesting a negative number of alternative routes does not make sense.
Fall back to the default value of 0 if a negative number of alternative
routes is requested.
Change-Id: Iecc1b7ba8bfa25b59b2a4c2efeafa33fd528377d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgeorouterequest/tst_qgeorouterequest.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qgeorouterequest/tst_qgeorouterequest.cpp b/tests/auto/qgeorouterequest/tst_qgeorouterequest.cpp index 7cfd3ff0..bb40fb02 100644 --- a/tests/auto/qgeorouterequest/tst_qgeorouterequest.cpp +++ b/tests/auto/qgeorouterequest/tst_qgeorouterequest.cpp @@ -170,7 +170,6 @@ void tst_QGeoRouteRequest::numberAlternativeRoutes() qgeorouterequest->setNumberAlternativeRoutes(-12); - QEXPECT_FAIL("", "numberAlternativeRoutes accepts -ve values", Continue); QCOMPARE(qgeorouterequest->numberAlternativeRoutes(), 0); } |