summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-03-23 19:28:02 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-03-23 19:28:02 +0000
commitd58a1dd26e25f99827060031e6f1e99895797b06 (patch)
tree11d65a5a2de5584708099c9e2cc1683e6637ac3a
parent2ebbec770a87a95e3e5c57e8e647a0b2b4131320 (diff)
downloadlibapr-d58a1dd26e25f99827060031e6f1e99895797b06.tar.gz
Proofread this patch please, but it sure seems silly to test the
original value rather than the result value. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@388239 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testfile.c b/test/testfile.c
index 502bf7217..5cc22d8f1 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -240,7 +240,7 @@ static void test_seek(CuTest *tc)
offset = -5;
rv = apr_file_seek(filetest, SEEK_END, &offset);
CuAssertIntEquals(tc, APR_SUCCESS, rv);
- CuAssertIntEquals(tc, strlen(TESTSTR) - 5, nbytes);
+ CuAssertIntEquals(tc, strlen(TESTSTR) - 5, offset);
memset(str, 0, nbytes + 1);
nbytes = 256;