diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-11-08 11:31:55 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-11-08 11:31:55 +0000 |
commit | 382afec4b07358dc2447ac9a098a273175c82543 (patch) | |
tree | 3ae0c15ccbe85f97f45a7fb5b74d9923f0e5a5cc /pjlib/src/pjlib-test/file.c | |
parent | fdf37ce8250927f2395a375e58fabbe4c646c1fa (diff) |
Initial configuration for pjlib-util
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@32 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/file.c')
-rw-r--r-- | pjlib/src/pjlib-test/file.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/file.c b/pjlib/src/pjlib-test/file.c index aa863506..b3ab6e32 100644 --- a/pjlib/src/pjlib-test/file.c +++ b/pjlib/src/pjlib-test/file.c @@ -8,7 +8,8 @@ #define NEWNAME "testfil2.txt"
#define INCLUDE_FILE_TIME_TEST 0
-static char buffer[11] = "Hello world";
+static char buffer[11] = {'H', 'e', 'l', 'l', 'o', ' ',
+ 'W', 'o', 'r', 'l', 'd' };
int file_test(void)
{
@@ -112,7 +113,9 @@ int file_test(void) read = 1;
status = pj_file_read(fd, &readbuf[size], &read);
if (status != PJ_SUCCESS) {
- app_perror("...file_read() error", status);
+ PJ_LOG(3,("", "...error reading file after %d bytes (error follows)",
+ size));
+ app_perror("...error", status);
return -110;
}
if (read == 0) {
|