uschindler commented on PR #13196: URL: https://github.com/apache/lucene/pull/13196#issuecomment-2014839549
It would be good if you always run tests with `./gradlew :lucene:core:test -Ptests.directory=MMapDirectory` This will use MMapDir for all tests. I have no macos machine, if somebody else could test the whole thing with macos (x86 and arm), it would be cool. It would also be good to get a printout of the haeder file containing those `POSIX_MADV_*` constants. Just grep on `POSIX_MADV_` through the include files (they are a bit hidden on macos, not in /usr/include, best is to search for `unistd.h` to find their location): ``` serv1-vm2:include jenkins$ xcrun --show-sdk-path /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk serv1-vm2:~ jenkins$ cd /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include serv1-vm2:include jenkins$ fgrep -R POSIX_MADV * sys/mman.h:#define POSIX_MADV_NORMAL 0 /* [MC1] no further special treatment */ sys/mman.h:#define POSIX_MADV_RANDOM 1 /* [MC1] expect random page refs */ sys/mman.h:#define POSIX_MADV_SEQUENTIAL 2 /* [MC1] expect sequential page refs */ sys/mman.h:#define POSIX_MADV_WILLNEED 3 /* [MC1] will need these pages */ sys/mman.h:#define POSIX_MADV_DONTNEED 4 /* [MC1] dont need these pages */ sys/mman.h:#define MADV_NORMAL POSIX_MADV_NORMAL sys/mman.h:#define MADV_RANDOM POSIX_MADV_RANDOM sys/mman.h:#define MADV_SEQUENTIAL POSIX_MADV_SEQUENTIAL sys/mman.h:#define MADV_WILLNEED POSIX_MADV_WILLNEED sys/mman.h:#define MADV_DONTNEED POSIX_MADV_DONTNEED serv1-vm2:include jenkins$ ``` -- 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