You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/01/25 15:40:12 UTC
svn commit: r902826 -
/lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c
Author: marvin
Date: Mon Jan 25 14:40:11 2010
New Revision: 902826
URL: http://svn.apache.org/viewvc?rev=902826&view=rev
Log:
Fix a bogus test in TestFSFileHandle that passed accidentally under 32-bit but
failed under 64-bit.
Modified:
lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c
Modified: lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c?rev=902826&r1=902825&r2=902826&view=diff
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c (original)
+++ lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c Mon Jan 25 14:40:11 2010
@@ -207,7 +207,7 @@
ASSERT_TRUE(batch, FSFH_Window(fh, window, 1021, 2),
"Window() returns true");
ASSERT_TRUE(batch,
- strncmp(window->buf + window->offset + 1021, "oo", 2) == 0,
+ strncmp(window->buf - window->offset + 1021, "oo", 2) == 0,
"Window()");
ASSERT_TRUE(batch, FSFH_Release_Window(fh, window),