diff options
-rw-r--r-- | c/src/tests/psxtests/filesupp/test_extend.c | 2 | ||||
-rw-r--r-- | c/src/tests/psxtests/filesupp/test_write.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 ) { |