Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2006-08-07 17:26:02+02:00, msvensson@neptunus.(none) +1 -0
Add some more code to analyze why the fgets fails.
tests/mysql_client_test.c@stripped, 2006-08-07 17:26:00+02:00, msvensson@neptunus.(none) +12 -3
Add some more code to analyze why the fgets fails.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/mysql-5.0-maint
--- 1.199/tests/mysql_client_test.c 2006-08-07 17:26:07 +02:00
+++ 1.200/tests/mysql_client_test.c 2006-08-07 17:26:07 +02:00
@@ -14951,9 +14951,18 @@ static void test_bug17667()
do {
memset(line_buffer, '/', MAX_TEST_QUERY_LENGTH*2);
- DIE_UNLESS(fgets(line_buffer, MAX_TEST_QUERY_LENGTH*2, log_file) !=
- NULL);
- /* If we reach EOF before finishing the statement list, then we failed. */
+ if(fgets(line_buffer, MAX_TEST_QUERY_LENGTH*2, log_file) == NULL)
+ {
+ /* If fgets returned NULL, it indicates either error or EOF */
+ if (feof(log_file))
+ DIE("Found EOF before all statements where found");
+ else
+ {
+ fprintf(stderr, "Got error %d while reading from file\n",
+ ferror(log_file));
+ DIE("Read error");
+ }
+ }
} while (my_memmem(line_buffer, MAX_TEST_QUERY_LENGTH*2,
statement_cursor->buffer, statement_cursor->length) == NULL);
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.2248) | msvensson | 7 Aug |