Skip to content

Commit

Permalink
tweak topmark report
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Mar 2, 2022
1 parent 5f9f194 commit 25fb213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion XS.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ static void _mojo_wait_promise(pTHX_ SV* promise_sv, SV* stop_cr) {
static inline void MY_S_debug_showstack(pTHX_ const char *pattern, ...)
{
SV **sp;
PerlIO_printf(Perl_debug_log, "INIT TOPMARK=%d", (int) TOPMARK);
PerlIO_printf(Perl_debug_log, "INIT TOPMARK=%d\n", (int) TOPMARK);

va_list ap;
va_start(ap, pattern);
Expand Down
6 changes: 3 additions & 3 deletions t/await_wait__anyevent.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ BEGIN {

plan skip_all => "Can’t run test: $failed_why" if $failed_why;

diag "topmark bad? " . _topmark_is_bad();
diag "topmark: " . Promise::XS::_TOPMARK();

Promise::XS::use_event('AnyEvent');

diag "topmark bad? " . _topmark_is_bad();
diag "topmark: " . Promise::XS::_TOPMARK();
Promise::XS::_SHOW_STACK();
diag "topmark bad? " . _topmark_is_bad();
diag "topmark: " . Promise::XS::_TOPMARK();

AwaitWait::test_success(
sub {
Expand Down

0 comments on commit 25fb213

Please sign in to comment.