Re: gtk2-perl / easily accessing objects properties



On Thu, Oct 31, 2002 at 01:53:28AM +0000, Dermot Musgrove wrote:
However, there seems to be a bug in the code somewhere - try running
'perl t/043_Gtk_Window.t' and see what I mean. The resizable($TRUE)
call does not set the value correctly although the resizable() call 
gets the correct value. BTW set_resizable($TRUE) works fine.

This was indeed a bug, I stumbled on this report while cleaning
my mailbox. This stresses the importance to report all bugs to
the tracker or they will not get fixed in a timely manner 
(or not fixed at all).

On another note:
the test scripts does not work at all for me.
Are they broken generally or is it just my environment?
Pasted a sample of failure below.

/göran

------------------- Failure --------------------------------------------

bash-2.05b$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi

bash-2.05b$ perl -e 'use Test; print "$Test::VERSION\n"'
1.20

bash-2.05b$ perl t/041_Gtk2_Window.t 
1..23
ok 1
ok 2
ok 3
not ok 4
# Test 4 got: '__FAIL' (Gtk2/Test.pm at line 304)
#   Expected: '__OK' ($w->{'Window'}[-1]->add($w->{'Button'}[-1]) failed: Modification of non-creatable array 
value attempted, subscript -1 at (eval 33) line 1.
#)
not ok 5
# Test 5 got: '__FAIL' (Gtk2/Test.pm at line 304 fail #2)
#   Expected: '__OK' ($w->{'Window'}[-1]->show_all failed: Modification of non-creatable array value 
attempted, subscript -1 at (eval 34) line 1.
#)
These were the failures logged $VAR1 = [
          {
            '21' => {
                      'check' => '[\'__C_EVAL\', \'$w->{\'Window\'}[-1]->add($w->{\'Button\'}[-1])\']',
                      'err' => '$w->{\'Window\'}[-1]->add($w->{\'Button\'}[-1]) failed: Modification of 
non-creatable array value attempted, subscript -1 at (eval 33) line 1.
',
                      'call' => '$w->{\'Window\'}[-1]->add($w->{\'Button\'}[-1])',
                      'class' => 'Gtk2::Button'
                    }
          },
          {
            '23' => {
                      'check' => '[\'__C_EVAL\', \'$w->{\'Window\'}[-1]->show_all\']',
                      'err' => '$w->{\'Window\'}[-1]->show_all failed: Modification of non-creatable array 
value attempted, subscript -1 at (eval 34) line 1.
',
                      'call' => '$w->{\'Window\'}[-1]->show_all',
                      'class' => 'Gtk2::Button'
                    }
          }
        ];
------------------- Failure --------------------------------------------


bash-2.05b$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.19, archname=i386-linux-thread-multi
    uname='linux cyberhq 2.4.19 #1 smp sun aug 4 11:30:45 pdt 2002 i686 unknown unknown gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux 
-Dprefix=/usr -Dprivlib=/usr/share/perl/5.8.0 -Darchlib=/usr/lib/perl/5.8.0 -Dvendorprefix=/usr 
-Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl/5.8.0 -Dsitearch=/usr/local/lib/perl/5.8.0 -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh 
-Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.0 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so.5.8.0
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Sep 14 2002 17:36:21
  @INC:
    /etc/perl
    /usr/local/lib/perl/5.8.0
    /usr/local/share/perl/5.8.0
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8.0
    /usr/share/perl/5.8.0
    /usr/local/lib/site_perl
    .



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]