From: Sebastian Harl Date: Tue, 3 Sep 2013 18:05:52 +0000 (+0200) Subject: t/utils/dbi_test: Fixed indexing into the golden_data array. X-Git-Tag: sysdb-0.1.0~358 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d09fef3176f33f2f620f48ca674f964a661968cd;p=sysdb.git t/utils/dbi_test: Fixed indexing into the golden_data array. --- diff --git a/t/utils/dbi_test.c b/t/utils/dbi_test.c index 1666d6e..e32f005 100644 --- a/t/utils/dbi_test.c +++ b/t/utils/dbi_test.c @@ -406,7 +406,7 @@ test_query_callback(sdb_dbi_client_t *c, "column %zu; expected: %i", data[i].type, i, expected_type); - expected_data = golden_data[current_query->current_row][i]; + expected_data = golden_data[current_query->current_row - 1][i + 1]; switch (expected_type) { case SDB_TYPE_INTEGER: fail_unless(data[i].data.integer == expected_data.integer,