summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-03-29 18:05:01 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-03-29 18:05:01 +0000
commit1ed9d576d93bc7e538bf6c6a60e893eee350f6ad (patch)
tree9bbeffd27085f35c8064c3ea80e59fecb6efbbae /c
parentChanged expected status lseek to look for not failure (-1). (diff)
downloadrtems-1ed9d576d93bc7e538bf6c6a60e893eee350f6ad.tar.bz2
Fixed expected return status from lseek to look for not failure (-1).
Diffstat (limited to 'c')
-rw-r--r--c/src/tests/psxtests/filesupp/test_extend.c2
-rw-r--r--c/src/tests/psxtests/filesupp/test_write.c2
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 ) {