Skip to content

Commit

Permalink
Work around reproducible-builds.t failing on first run
Browse files Browse the repository at this point in the history
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 37b7ef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/02-rakudo/reproducible-builds.t
Original file line number Diff line number Diff line change
@@ -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)))
Expand Down

0 comments on commit 37b7ef7

Please sign in to comment.