uschindler commented on code in PR #13560:
URL: https://github.com/apache/lucene/pull/13560#discussion_r1672135733


##########
lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java:
##########
@@ -141,4 +146,57 @@ public void testWithRandom() throws Exception {
       }
     }
   }
+
+  // Opens the input with IOContext.READONCE to ensure slice and clone are 
appropriately confined
+  public void testConfined() throws Exception {
+    assumeTrue("Only testable with memory segments", 
Runtime.version().feature() >= 19);

Review Comment:
   Use `isMemorySegmentImpl()`, see 
https://github.com/apache/lucene/blob/9e5d278cd6e6f17f09dea8d05295008c855c971a/lucene/core/src/test/org/apache/lucene/store/TestMMapDirectory.java#L67
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to