diff options
author | unknown <Reggie@xgeek.> | 2006-08-05 18:58:38 -0500 |
---|---|---|
committer | unknown <Reggie@xgeek.> | 2006-08-05 18:58:38 -0500 |
commit | 5efe5fd82058b3e5a3e08f451f67c7d4d1ee7b32 (patch) | |
tree | 924a8053899fe33bce2a9072704490815ae9f0ef /tests | |
parent | 46ed9d0b671660b2ca1d9558134344962ed8105f (diff) | |
download | mariadb-git-5efe5fd82058b3e5a3e08f451f67c7d4d1ee7b32.tar.gz |
please don't call methods that should always execute inside assert()
tests/mysql_client_test.c:
fixed lines that are executing methods that should always execute inside assert()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 0b94b482b7a..2463840bd0c 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -10996,7 +10996,8 @@ static void test_view() { rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(1 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(1 == rc); } mysql_stmt_close(stmt); @@ -11038,7 +11039,8 @@ static void test_view_where() { rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(4 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(4 == rc); } mysql_stmt_close(stmt); @@ -11120,7 +11122,8 @@ static void test_view_2where() rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(0 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(0 == rc); mysql_stmt_close(stmt); @@ -11172,7 +11175,8 @@ static void test_view_star() { rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(0 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(0 == rc); } mysql_stmt_close(stmt); @@ -11275,7 +11279,8 @@ static void test_left_join_view() { rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(3 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(3 == rc); } mysql_stmt_close(stmt); @@ -11350,7 +11355,8 @@ static void test_view_insert_fields() check_execute(stmt, rc); rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - assert(1 == my_process_stmt_result(stmt)); + rc= my_process_stmt_result(stmt); + assert(1 == rc); mysql_stmt_close(stmt); rc= mysql_query(mysql, "DROP VIEW v1"); |