diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-10-11 09:43:04 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-10-11 09:43:04 +0000 |
commit | 6d98f6f678af40a5893a511bce254c39f8abc78b (patch) | |
tree | 9080b73624389403a198257fe0547bb4634e64d2 /src/util/test_bio.c | |
parent | 99712a58d5a649363998f2355302df7dcc247d29 (diff) |
converting to GNUNET_LOG_from*
git-svn-id: https://gnunet.org/svn/gnunet@17362 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util/test_bio.c')
-rw-r--r-- | src/util/test_bio.c | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/src/util/test_bio.c b/src/util/test_bio.c index df4becdd18..e72c95295e 100644 --- a/src/util/test_bio.c +++ b/src/util/test_bio.c @@ -57,16 +57,17 @@ test_normal_rw () GNUNET_assert (NULL != fileR); readResultString = NULL; GNUNET_assert (GNUNET_OK == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResultString, 200)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResultString, 200)); GNUNET_assert (NULL != readResultString); GNUNET_assert (0 == strcmp (TESTSTRING, readResultString)); GNUNET_free (readResultString); GNUNET_assert (GNUNET_OK == - GNUNET_BIO_read_meta_data (fileR, "Read meta error", - &metaDataR)); + GNUNET_BIO_read_meta_data (fileR, "Read meta error", + &metaDataR)); GNUNET_assert (GNUNET_YES == - GNUNET_CONTAINER_meta_data_test_equal (metaDataR, metaDataW)); + GNUNET_CONTAINER_meta_data_test_equal (metaDataR, + metaDataW)); GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_int64 (fileR, &testNum)); GNUNET_BIO_read_close (fileR, &msg); GNUNET_CONTAINER_meta_data_destroy (metaDataW); @@ -93,8 +94,8 @@ test_nullstring_rw () fileR = GNUNET_BIO_read_open (fileName); GNUNET_assert (NULL != fileR); GNUNET_assert (GNUNET_OK == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResultString, 200)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResultString, 200)); GNUNET_assert (NULL == readResultString); GNUNET_BIO_read_close (fileR, &msg); GNUNET_assert (GNUNET_OK == GNUNET_DISK_directory_remove (fileName)); @@ -121,8 +122,8 @@ test_emptystring_rw () GNUNET_assert (NULL != fileR); readResultString = NULL; GNUNET_assert (GNUNET_OK == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResultString, 200)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResultString, 200)); GNUNET_free (readResultString); GNUNET_BIO_read_close (fileR, &msg); GNUNET_assert (GNUNET_OK == GNUNET_DISK_directory_remove (fileName)); @@ -148,8 +149,8 @@ test_bigstring_rw () GNUNET_assert (NULL != fileR); readResultString = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResultString, 1)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResultString, 1)); GNUNET_assert (NULL == readResultString); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); @@ -181,8 +182,8 @@ test_bigmeta_rw () GNUNET_assert (NULL != fileR); metaDataR = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_meta_data (fileR, "Read meta error", - &metaDataR)); + GNUNET_BIO_read_meta_data (fileR, "Read meta error", + &metaDataR)); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); GNUNET_free (msg); @@ -203,8 +204,8 @@ test_directory_r () fileR = GNUNET_BIO_read_open ("/dev"); GNUNET_assert (NULL != fileR); GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read (fileR, "Read error", readResult, - sizeof (readResult))); + GNUNET_BIO_read (fileR, "Read error", readResult, + sizeof (readResult))); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); GNUNET_free (msg); @@ -267,18 +268,18 @@ test_fullfile_rw () fileR = GNUNET_BIO_read_open ("/dev/null"); GNUNET_assert (NULL != fileR); GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read (fileR, "Read error", readResult, - sizeof (readResult))); + GNUNET_BIO_read (fileR, "Read error", readResult, + sizeof (readResult))); readResultString = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResultString, 200)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResultString, 200)); GNUNET_assert (NULL == readResultString); GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_int64 (fileR, &testNum)); metaDataR = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_meta_data (fileR, "Read meta error", - &metaDataR)); + GNUNET_BIO_read_meta_data (fileR, "Read meta error", + &metaDataR)); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); GNUNET_free (msg); @@ -305,8 +306,8 @@ test_fakestring_rw () fileR = GNUNET_BIO_read_open (fileName); GNUNET_assert (NULL != fileR); GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_string (fileR, "Read string error", - &readResult, 200)); + GNUNET_BIO_read_string (fileR, "Read string error", + &readResult, 200)); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); GNUNET_free (msg); @@ -334,8 +335,8 @@ test_fakemeta_rw () GNUNET_assert (NULL != fileR); metaDataR = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_meta_data (fileR, "Read meta error", - &metaDataR)); + GNUNET_BIO_read_meta_data (fileR, "Read meta error", + &metaDataR)); GNUNET_assert (NULL == metaDataR); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); @@ -364,8 +365,8 @@ test_fakebigmeta_rw () GNUNET_assert (NULL != fileR); metaDataR = NULL; GNUNET_assert (GNUNET_SYSERR == - GNUNET_BIO_read_meta_data (fileR, "Read meta error", - &metaDataR)); + GNUNET_BIO_read_meta_data (fileR, "Read meta error", + &metaDataR)); msg = NULL; GNUNET_BIO_read_close (fileR, &msg); GNUNET_free (msg); |