test: fix CIND test index checking

CIND indexes returned from helper are 1-based, not 0-based, because
that makes it easier to match against the modem's unsolicited CIND
message.
This commit is contained in:
Dan Williams
2010-12-21 11:54:47 -06:00
parent eb90498efd
commit 292c98029d
+1 -1
View File
@@ -1107,7 +1107,7 @@ test_cind_results (const char *desc,
compare = g_hash_table_lookup (results, expected->desc);
g_assert (compare);
g_assert_cmpint (i, ==, cind_response_get_index (compare));
g_assert_cmpint (i + 1, ==, cind_response_get_index (compare));
g_assert_cmpint (expected->min, ==, cind_response_get_min (compare));
g_assert_cmpint (expected->max, ==, cind_response_get_max (compare));
}