Changed expected status lseek to look for not failure (-1).

This commit is contained in:
Jennifer Averett
1999-03-29 17:59:46 +00:00
parent 39560f1b0f
commit 2ada69ab1a

View File

@@ -49,7 +49,7 @@ void test_cat(
for ( ;; ) { for ( ;; ) {
status = lseek( fd, offset, SEEK_SET ); status = lseek( fd, offset, SEEK_SET );
assert( !status ); assert( status != -1 );
status = read( fd, test_cat_buffer, sizeof(test_cat_buffer) ); status = read( fd, test_cat_buffer, sizeof(test_cat_buffer) );
if ( status <= 0 ) { if ( status <= 0 ) {