Superseded patch for Tcl::Tk t/text.t

[email protected] (Christopher Chavez) Sat, 14 Jul 2018 17:28:04 -0500
Newsgroups perl.tcltk
Message-ID <[email protected]>
A few days ago, I noticed how text.t would be skipped due to "no tklib =
extension available" even if tklib was installed. I found that changing =
`pkg_require('scrolledwindow')` to =
`pkg_require('widget::scrolledwindow')` got it working.

I had come up with the following patch and was about to open a pull =
request, but then 1.12 was released with snit included, so the very test =
for scrolledwindow I had patched was removed.

Just sending this along for reference.


diff --git a/t/text.t b/t/text.t
index f497bd5..94ea184 100755
--- a/t/text.t
+++ b/t/text.t
@@ -10,7 +10,7 @@ if ($^O ne 'MSWin32' and !$ENV{DISPLAY}) {

 my $mw =3D Tcl::Tk::MainWindow->new;

-if (!$mw->interp->pkg_require('scrolledwindow')) {
+if (!$mw->interp->pkg_require('widget::scrolledwindow')) {
     print "1..0 # skip: no tklib extension available\n";
     exit;
 }