Skip to content
Permalink
Browse files

Work around reproducible-builds.t failing on first run

When run for the first time during make test, reproducible-build.t failed
because it would precompile NativeCall's dependencies on the first compilation
but of NativeCall but re-use them on the second compilation. Precompiling
those dependencies causes serialization of an additional Match object, making
the test fail.

Preferrably it wouldn't matter that we need to precompile the dependencies.
Until that's fixed, make the test pass by ensuring that NativeCalls's
dependencies are already precompiled before the first test run. We'll still
get reproducible builds for installation of modules which is where it's most
important.
  • Loading branch information...
niner committed May 3, 2019
1 parent 5669bc9 commit 37b7ef7ce9b6c5afb18f94b2230db625da24c96a
Showing with 1 addition and 0 deletions.
  1. +1 −0 t/02-rakudo/reproducible-builds.t
@@ -1,4 +1,5 @@
use Test;
use NativeCall; # precompile dependencies

my $store = CompUnit::PrecompilationStore::File.new(
:prefix($*TMPDIR.child("rakudo-precomp" ~ (^2**128).pick.base(36)))

0 comments on commit 37b7ef7

Please sign in to comment.
You can’t perform that action at this time.