Subject: | Launch on a random port/private IP rather then trying to stop mpd,, perhaps? |
This module caused a failure to install Audio::MPD on a machine which
had mpd already running.
Test output:
Building Test-Corpus-Audio-MPD
# Failed test 'module loads ok'
# at t/00-compile.t line 17.
# got: 'could not start fake mpd: Failed to bind to
'[::1]:6600': Address already in use
#
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
As you can see, there was already an MPD process running and listening
on the default port, and it would seem that, although this module claims
it will temporarily stop it, it didn't.
Perhaps, instead of trying to stop any existing mpd instance, it could
just pick a random port for the temporary one to listen on, and set
$ENV{MPD_PORT} to the port chosen? Alternatively, perhaps write the
fake config file to tell mpd to listen only on, say, 127.0.0.42 (any IP
in the 127.x range) and set $ENV{MPD_HOST} appropriately?