Skip to content

Fix for failed test at CPAN #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anne-gert opened this issue Nov 4, 2020 · 4 comments
Open

Fix for failed test at CPAN #7

anne-gert opened this issue Nov 4, 2020 · 4 comments

Comments

@anne-gert
Copy link

anne-gert commented Nov 4, 2020

Hello maintainers,

I've been using the Tkx module for years and I'm very happy with it. Unfortunately, there is a long-standing test issue on CPAN ( see http://www.cpantesters.org/cpan/report/640f2c8c-1c8e-11eb-9ee7-b9ac198ac9a8 ).

The error reads:

# Test 18 got: "Tcl error 'Foo at /home/sand/src/perl/repoperls/installed-perls/host/k93bionic/v5.33.3/ebf1/lib/site_perl/5.33.3/x86_64-linux-thread-multi-ld/Tcl.pm line 817.\n' while invoking scalar result call:\n\t\"error Foo\" at t/tcl.t line 38.\n" (t/tcl.t at line 39)
#    Expected: "Foo at t/tcl.t line 38.\n"
#  t/tcl.t line 39 is: ok($@, "Foo at @{[__FILE__]} line @{[__LINE__ - 1]}.\n");
t/tcl.t ........... 

I believe the problem is a platform dependency in the regex in Tkx.pm at line 334.

Change the end of that regex from \n\z to \s*\z

  • Is this sufficient information to request an update?
  • Is this module still being maintained?

Best Regards,

Anne-Gert

@anne-gert
Copy link
Author

anne-gert commented Nov 5, 2020

I created PR #8 for this.

@chrstphrchvz
Copy link

Hello @anne-gert, I have been added as a maintainer of Tkx. I will likely be maintaining it from my fork instead of this repository.

I would like to publish a maintenance release that fixes this often-encountered issue, but am still trying to understand what is causing it and how to address it. The approach proposed in #8 illustrates how the issue is deeper than the affected t/tcl.t test case. I think it may have been caused by Tcl.pm removing features which Tkx still expects, e.g. $Tcl::STACK_TRACE: gisle/tcl.pm@5b55b71; and which other Tcl.pm dependents like Tcl::pTk had to workaround: chrstphrchvz/perl-tcl-ptk@47ef11b.

It could be that all Tkx was trying to do here was provide nicer/cleaner error messages to Tkx programs, so maybe there is some flexibility in improving both the error message code and the affected test case.

chrstphrchvz added a commit to chrstphrchvz/tkx that referenced this issue Feb 6, 2021
Failure likely caused by changes in Tcl.pm. This is a minor issue,
and not a reason to prevent users from installing Tkx.

See: https://rt.cpan.org/Ticket/Display.html?id=115662, gisle#4, gisle#7
@chrstphrchvz
Copy link

For now, I have marked the affected test as TODO in Tkx 1.10.

@anne-gert
Copy link
Author

anne-gert commented Feb 6, 2021 via email

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

No branches or pull requests

2 participants