Skip to content

Conversation

NicholasBHubbard
Copy link
Contributor

This PR fixes issue #1519 and #1522.

I based my fix off this commit from #1610 that was never merged.

Because Inline::CPP version 0.80 has an interactive Makefile.PL, the bug can be reproduced by running the following command on the main branch (this command will hang):

fpm --no-cpan-test --cpan-verbose --verbose --debug-workspace --workdir $HOME/tmp -t rpm -s cpan -v 0.80 Inline::CPP

Part of the issue in #1522 is that @wbraswell could not see the output from cpanminus, however this problem was fixed at some point. I added a test to util_spec.rb to ensure that the loggers pipe method is invoked during execution of safesystem. I would have liked to say expect(logger).to receive(:pipe).with(instance_of(IO) => :info, instance_of(IO) => :info), but rspec does not allow you to use the instance_of matcher on the keys of a hash argument. Due to this limitation I am not able to ensure that pipe is called with the correct arguments, but this test should still be good enough.

@wbraswell
Copy link
Contributor

@jordansissel
Please accept this PR, thanks!

@jordansissel jordansissel merged commit 3ba61bc into jordansissel:main Nov 14, 2022
@jordansissel
Copy link
Owner

Looks good. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants