Skip to content

Commit

Permalink
Fix test failures on hurd-i386.
Browse files Browse the repository at this point in the history
- Make madvise() no-op, not implemented on Hurd.
- Skip threads tests, thread implementation problematic.
  • Loading branch information
sebastic committed Jul 2, 2016
1 parent 7c60b45 commit 6124b99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/File/Map.xs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static size_t page_size() {
}
#endif

#ifdef VMS
#if defined(VMS) || defined(__GNU__)
#define madvise(address, length, advice) 0
#endif

Expand Down
2 changes: 1 addition & 1 deletion t/20-threads.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Config;
BEGIN {
# Yes, this is really necessary
if ($Config{useithreads}) {
if ($Config{useithreads} && $^O ne 'gnu') {
require threads;
threads->import();
require Test::More;
Expand Down

0 comments on commit 6124b99

Please sign in to comment.