From 292c98029dd6107de2c5f592eac256c512764688 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 21 Dec 2010 11:54:47 -0600 Subject: [PATCH] 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. --- src/tests/test-modem-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test-modem-helpers.c b/src/tests/test-modem-helpers.c index f0cbe61c..cd1e1bb4 100644 --- a/src/tests/test-modem-helpers.c +++ b/src/tests/test-modem-helpers.c @@ -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)); }