mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-2039 Add more tests of filestrm.h
X-SVN-Rev: 11853
This commit is contained in:
parent
a6d34f1d45
commit
84748ccb8d
1 changed files with 7 additions and 4 deletions
|
@ -563,6 +563,13 @@ static void TestFileStream(void){
|
|||
if(T_FileStream_size(stream)<=0){
|
||||
log_data_err("T_FileStream_size failed to d %s \n",fileName);
|
||||
}
|
||||
if(T_FileStream_error(stream)){
|
||||
log_data_err("T_FileStream_error shouldn't have an error %s\n",fileName);
|
||||
}
|
||||
T_FileStream_putc(stream, 0x20);
|
||||
if(!T_FileStream_error(stream)){
|
||||
log_data_err("T_FileStream_error didn't get an error %s\n",fileName);
|
||||
}
|
||||
|
||||
T_FileStream_close(stream);
|
||||
/* test writing function */
|
||||
|
@ -597,10 +604,6 @@ static void TestFileStream(void){
|
|||
log_data_err("T_FileStream_write failed %s\n",fileName);
|
||||
}
|
||||
|
||||
/* weiv: I think we should first set error and then close the stream */
|
||||
|
||||
T_FileStream_setError(stream);
|
||||
|
||||
T_FileStream_close(stream);
|
||||
|
||||
if(!T_FileStream_remove(fileName)){
|
||||
|
|
Loading…
Add table
Reference in a new issue