Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created February 28, 2020 21:36
Show Gist options
  • Save dogbert17/d2a4d8c6b3a382fbc5b000c084b2e65f to your computer and use it in GitHub Desktop.
Save dogbert17/d2a4d8c6b3a382fbc5b000c084b2e65f to your computer and use it in GitHub Desktop.
Test::Mock
dogbert@dogbert-VirtualBox ~/repos/test-mock $ MVM_SPESH_DISABLE=1 perl6 -Ilib t/threads.t
1..1
at SETTING::src/core.c/Array.pm6:701 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:push)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):8 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:log-method-call)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):57 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):74 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from t/threads.t:15 (<ephemeral file>:)
from t/threads.t:14 (<ephemeral file>:)
from SETTING::src/core.c/Promise.pm6:267 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:896 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:248 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:242 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:239 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:run-one)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:281 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Thread.pm6:54 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:THREAD-ENTRY)
at SETTING::src/core.c/Array.pm6:701 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:push)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):8 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:log-method-call)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):57 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):74 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from t/threads.t:15 (<ephemeral file>:)
from t/threads.t:14 (<ephemeral file>:)
from SETTING::src/core.c/Promise.pm6:267 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:896 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:248 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:242 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:239 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:run-one)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:281 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Thread.pm6:54 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:THREAD-ENTRY)
at SETTING::src/core.c/Array.pm6:701 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:push)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):8 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:log-method-call)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):57 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock):74 (/home/dogbert/repos/test-mock/lib/.precomp/2406CE3E836AE2E0E61B34BBA2C45583FD1A58BE/8A/8A423124692B177E28909C955DD733E4D34512A3:<anon>)
from t/threads.t:15 (<ephemeral file>:)
from t/threads.t:14 (<ephemeral file>:)
from SETTING::src/core.c/Promise.pm6:267 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:896 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:248 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:242 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:239 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:run-one)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:281 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Thread.pm6:54 (/home/dogbert/.rakudobrew/versions/moar-master/install/share/perl6/runtime/CORE.c.setting.moarvm:THREAD-ENTRY)
An operation first awaited:
in block <unit> at t/threads.t line 12
Died with the exception:
Array may not be used concurrently
in method log-method-call at /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock) line 8
in method <anon> at /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock) line 57
in method <anon> at /home/dogbert/repos/test-mock/lib/Test/Mock.pm6 (Test::Mock) line 74
in block at t/threads.t line 15
# You planned 1 test, but ran 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment