forked from Imagelibrary/rtems
Fixed expected return status from lseek to look for not failure (-1).
This commit is contained in:
@@ -41,7 +41,7 @@ void test_extend(
|
||||
}
|
||||
|
||||
status = lseek( fd, offset - 1, SEEK_SET );
|
||||
assert( !status );
|
||||
assert( status != -1 );
|
||||
|
||||
status = write( fd, &c, 1 );
|
||||
if ( status == -1 ) {
|
||||
|
||||
@@ -40,7 +40,7 @@ void test_write(
|
||||
}
|
||||
|
||||
status = lseek( fd, offset, SEEK_SET );
|
||||
assert( !status );
|
||||
assert( status != -1 );
|
||||
|
||||
status = write( fd, buffer, length );
|
||||
if ( status == -1 ) {
|
||||
|
||||
Reference in New Issue
Block a user