lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r902826 - /lucene/lucy/trunk/core/Lucy/Test/Store/TestFSFileHandle.c
Date Mon, 25 Jan 2010 14:40:12 GMT
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), 



Mime
View raw message