From 1ed9d576d93bc7e538bf6c6a60e893eee350f6ad Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Mon, 29 Mar 1999 18:05:01 +0000 Subject: Fixed expected return status from lseek to look for not failure (-1). --- c/src/tests/psxtests/filesupp/test_extend.c | 2 +- c/src/tests/psxtests/filesupp/test_write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'c') diff --git a/c/src/tests/psxtests/filesupp/test_extend.c b/c/src/tests/psxtests/filesupp/test_extend.c index 8bd8fca913..ae284aab46 100644 --- a/c/src/tests/psxtests/filesupp/test_extend.c +++ b/c/src/tests/psxtests/filesupp/test_extend.c @@ -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 ) { diff --git a/c/src/tests/psxtests/filesupp/test_write.c b/c/src/tests/psxtests/filesupp/test_write.c index d6acd00f85..c025734532 100644 --- a/c/src/tests/psxtests/filesupp/test_write.c +++ b/c/src/tests/psxtests/filesupp/test_write.c @@ -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 ) { -- cgit v1.2.3