Fixed expected return status from lseek to look for not failure (-1).

This commit is contained in:
Jennifer Averett
1999-03-29 18:05:01 +00:00
parent 2ada69ab1a
commit 1ed9d576d9
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ) {

View File

@@ -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 ) {