Subject: | 26-playback.t fails under serveral situations |
Not exacly sure whats happening here:
Firstly, when run as myself, a user with sound privs, it has occasionally failed, but I can no longer get it to fail despite having changed nothing.
Secondly, when run as a user *without* sound privs, it fails every time ( but slightly differently )
And Thirdly, for some magical reason I can get it to trigger as myself with privs, but *only* if I run some of the other tests first (!?!?!?)
Good luck! :)
prove -bvr t/26-playback.t # Nothing bad happens
prove -bvr t/22-general.t t/23-output.t t/26-playback.t
Show quoted text
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
ok 3 - playid() starts playback
ok 4 - playid() can start playback at a given song
ok 5 - pause() forces playback pause
not ok 6 - pause() can force playback resume
Show quoted text
Show quoted text
Show quoted text
ok 10 - next() changes track to next one
ok 11 - prev() changes track to previous one
ok 12 # skip detection method doesn't always work - depends on timing
ok 13 # skip detection method doesn't always work - depends on timing
ok 14 # skip detection method doesn't always work - depends on timing
ok 15 # skip detection method doesn't always work - depends on timing
ok 16 # skip detection method doesn't always work - depends on timing
ok 17 # skip detection method doesn't always work - depends on timing
ok 18 # skip detection method doesn't always work - depends on timing
ok 19 # skip detection method doesn't always work - depends on timing
Show quoted text
Failed 3/19 subtests
(less 8 skipped subtests: 8 okay)
*********** prove -bvr t/22-general.t t/26-playback.t
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
ok 3 - playid() starts playback
ok 4 - playid() can start playback at a given song
ok 5 - pause() forces playback pause
ok 6 - pause() can force playback resume
ok 7 - pause() toggles to pause
not ok 8 - pause() toggles to play
Show quoted text
ok 10 - next() changes track to next one
ok 11 - prev() changes track to previous one
ok 12 # skip detection method doesn't always work - depends on timing
ok 13 # skip detection method doesn't always work - depends on timing
ok 14 # skip detection method doesn't always work - depends on timing
ok 15 # skip detection method doesn't always work - depends on timing
ok 16 # skip detection method doesn't always work - depends on timing
ok 17 # skip detection method doesn't always work - depends on timing
ok 18 # skip detection method doesn't always work - depends on timing
ok 19 # skip detection method doesn't always work - depends on timing
Show quoted text
Failed 1/19 subtests
(less 8 skipped subtests: 10 okay)
************ Priv User Fail:
sudo -u nobody prove -bvr t/26-playback.t
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
not ok 3 - playid() starts playback
Show quoted text
ok 5 - pause() forces playback pause
not ok 6 - pause() can force playback resume
Show quoted text
not ok 8 - pause() toggles to play
Show quoted text
ok 10 - next() changes track to next one
Could not create socket: Connection refused
Show quoted text
Test Summary Report
-------------------
t/26-playback.t (Wstat: 0 Tests: 10 Failed: 3)
Failed tests: 3, 6, 8
Parse errors: Bad plan. You planned 19 tests but ran 10.
Files=1, Tests=10, 4 wallclock secs ( 0.04 usr 0.00 sys + 0.66 cusr 0.09 csys = 0.79 CPU)
Result: FAIL
Firstly, when run as myself, a user with sound privs, it has occasionally failed, but I can no longer get it to fail despite having changed nothing.
Secondly, when run as a user *without* sound privs, it fails every time ( but slightly differently )
And Thirdly, for some magical reason I can get it to trigger as myself with privs, but *only* if I run some of the other tests first (!?!?!?)
Good luck! :)
prove -bvr t/26-playback.t # Nothing bad happens
prove -bvr t/22-general.t t/23-output.t t/26-playback.t
Show quoted text
# 26's Excerpt
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
ok 3 - playid() starts playback
ok 4 - playid() can start playback at a given song
ok 5 - pause() forces playback pause
not ok 6 - pause() can force playback resume
Show quoted text
# Failed test 'pause() can force playback resume'
# at t/26-playback.t line 52.
# got: 'pause'
# expected: 'play'
not ok 7 - pause() toggles to pause# at t/26-playback.t line 52.
# got: 'pause'
# expected: 'play'
Show quoted text
# Failed test 'pause() toggles to pause'
# at t/26-playback.t line 54.
# got: 'play'
# expected: 'pause'
not ok 8 - pause() toggles to play# at t/26-playback.t line 54.
# got: 'play'
# expected: 'pause'
Show quoted text
# Failed test 'pause() toggles to play'
# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 9 - stop() forces full stop# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 10 - next() changes track to next one
ok 11 - prev() changes track to previous one
ok 12 # skip detection method doesn't always work - depends on timing
ok 13 # skip detection method doesn't always work - depends on timing
ok 14 # skip detection method doesn't always work - depends on timing
ok 15 # skip detection method doesn't always work - depends on timing
ok 16 # skip detection method doesn't always work - depends on timing
ok 17 # skip detection method doesn't always work - depends on timing
ok 18 # skip detection method doesn't always work - depends on timing
ok 19 # skip detection method doesn't always work - depends on timing
Show quoted text
# Looks like you failed 3 tests of 19.
Dubious, test returned 3 (wstat 768, 0x300)Failed 3/19 subtests
(less 8 skipped subtests: 8 okay)
*********** prove -bvr t/22-general.t t/26-playback.t
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
ok 3 - playid() starts playback
ok 4 - playid() can start playback at a given song
ok 5 - pause() forces playback pause
ok 6 - pause() can force playback resume
ok 7 - pause() toggles to pause
not ok 8 - pause() toggles to play
Show quoted text
# Failed test 'pause() toggles to play'
# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 9 - stop() forces full stop# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 10 - next() changes track to next one
ok 11 - prev() changes track to previous one
ok 12 # skip detection method doesn't always work - depends on timing
ok 13 # skip detection method doesn't always work - depends on timing
ok 14 # skip detection method doesn't always work - depends on timing
ok 15 # skip detection method doesn't always work - depends on timing
ok 16 # skip detection method doesn't always work - depends on timing
ok 17 # skip detection method doesn't always work - depends on timing
ok 18 # skip detection method doesn't always work - depends on timing
ok 19 # skip detection method doesn't always work - depends on timing
Show quoted text
# Looks like you failed 1 test of 19.
Dubious, test returned 1 (wstat 256, 0x100)Failed 1/19 subtests
(less 8 skipped subtests: 10 okay)
************ Priv User Fail:
sudo -u nobody prove -bvr t/26-playback.t
t/26-playback.t ..
1..19
ok 1 - play() starts playback
ok 2 - play() can start playback at a given song
not ok 3 - playid() starts playback
Show quoted text
# Failed test 'playid() starts playback'
# at t/26-playback.t line 42.
# got: 'pause'
# expected: 'play'
ok 4 - playid() can start playback at a given song# at t/26-playback.t line 42.
# got: 'pause'
# expected: 'play'
ok 5 - pause() forces playback pause
not ok 6 - pause() can force playback resume
Show quoted text
# Failed test 'pause() can force playback resume'
# at t/26-playback.t line 52.
# got: 'pause'
# expected: 'play'
ok 7 - pause() toggles to pause# at t/26-playback.t line 52.
# got: 'pause'
# expected: 'play'
not ok 8 - pause() toggles to play
Show quoted text
# Failed test 'pause() toggles to play'
# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 9 - stop() forces full stop# at t/26-playback.t line 56.
# got: 'pause'
# expected: 'play'
ok 10 - next() changes track to next one
Could not create socket: Connection refused
Show quoted text
# Looks like you planned 19 tests but ran 10.
# Looks like you failed 3 tests of 10 run.
# Looks like your test exited with 256 just after 10.
Failed 12/19 subtests # Looks like you failed 3 tests of 10 run.
# Looks like your test exited with 256 just after 10.
Test Summary Report
-------------------
t/26-playback.t (Wstat: 0 Tests: 10 Failed: 3)
Failed tests: 3, 6, 8
Parse errors: Bad plan. You planned 19 tests but ran 10.
Files=1, Tests=10, 4 wallclock secs ( 0.04 usr 0.00 sys + 0.66 cusr 0.09 csys = 0.79 CPU)
Result: FAIL