t/40profile.t bugs on NetBSD-5.99.24

Jens Rehsack <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
Hi Tim,

after resync my changes with svn repo, I regen Makefile and do "make
test" again to see, if any new conflicts came in.
I got errors from t/40profile.t - where I'm sure that I don't touch
lib/DBI/Profile*

I attach the output of the test - if it's not enough, please tell me
which information I can provide or when I should debug it on my
machine.

Jens
40profile.log (application/octet-stream, 6.3 KB)
1..60
Test enabling the profile
ok 1
ok 2
not ok 3
#   Failed test at t/40profile.t line 61.
#     Structures begin differing at:
#          $got->{Trace} = '0'
#     $expected->{Trace} = Does not exist
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
not ok 4
#   Failed test at t/40profile.t line 68.
#     Structures begin differing at:
#          $got->{Trace} = '0'
#     $expected->{Trace} = Does not exist
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
not ok 5
#   Failed test at t/40profile.t line 75.
#     Structures begin differing at:
#          $got->{Trace} = '0'
#     $expected->{Trace} = Does not exist
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
bless( {
  'Trace' => 0,
  'Path' => [
    '!MethodName',
    '!Caller2'
  ],
  'Data' => {
    'do' => {
      '40profile.t line 80' => [
        1,
        '0.00010991096496582',
        '0.00010991096496582',
        '0.00010991096496582',
        '0.00010991096496582',
        '1273476055.07943',
        '1273476055.07943'
      ]
    }
  }
}, 'DBI::Profile' )
not ok 6
#   Failed test at t/40profile.t line 85.
#     Structures begin differing at:
#          $got->{Trace} = '0'
#     $expected->{Trace} = Does not exist
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 7
ok 8
ok 9
ok 10
dbi_profile
bless( {
  'Trace' => 0,
  'Path' => [
    '!Statement',
    '!MethodName'
  ],
  'Data' => {
    '' => {
      'connected' => [
        1,
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '1273476055.08065',
        '1273476055.08065'
      ],
      'FETCH' => [
        1,
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '9.5367431640625e-07',
        '1273476055.08064',
        '1273476055.08064'
      ],
      'STORE' => [
        5,
        '3.14712524414062e-05',
        '7.15255737304688e-06',
        '5.00679016113281e-06',
        '7.15255737304688e-06',
        '1273476055.08059',
        '1273476055.08065'
      ]
    },
    'Hi mom' => {
      'my_method_name' => [
        1,
        '1',
        '1',
        '1',
        '1',
        '1273476055.08169',
        '1273476055.08169'
      ]
    }
  }
}, 'DBI::Profile' )
ok 11
ok 12
ok 13
ok 14 - should return ref to leaf node
ok 15 - should return ref to leaf node
ok 16 - should return ref to correct leaf node
1 1 1 1 1 1273476055.08169 1273476055.08169
ok 17
2 3 1 1 2 1273476055.08169 1273476055.08406
ok 18
Test collected profile data
bless( {
  'Trace' => 0,
  'Path' => [
    '!Statement'
  ],
  'Data' => {
    'set foo=1' => [
      1,
      '8.10623168945312e-05',
      '8.10623168945312e-05',
      '8.10623168945312e-05',
      '8.10623168945312e-05',
      '1273476055.21944',
      '1273476055.21944'
    ],
    '' => [
      7,
      '3.40938568115234e-05',
      '7.15255737304688e-06',
      '9.5367431640625e-07',
      '7.15255737304688e-06',
      '1273476055.08504',
      '1273476055.08511'
    ],
    'select mode,size,name from ?' => [
      3051,
      '0.121633052825928',
      '8.70227813720703e-05',
      '2.09808349609375e-05',
      '0.00316691398620605',
      '1273476055.08535',
      '1273476055.21941'
    ]
  }
}, 'DBI::Profile' )
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
not ok 34
#   Failed test at t/40profile.t line 180.
#     Structures begin differing at:
#          $got->{Trace} = '0'
#     $expected->{Trace} = Does not exist
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
Test profile format
Profile Output
DBI::Profile: 0.121748s 90.59% (3059 calls) 40profile.t @ 2010-05-10 09:20:55
'' =>
    0.000034s / 7 = 0.000005s avg (first 0.000007s, min 0.000001s, max 0.000007s)
'select mode,size,name from ?' =>
    0.121633s / 3051 = 0.000040s avg (first 0.000087s, min 0.000021s, max 0.003167s)
'set foo=1' =>
    0.000081s

ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 41 - should have 9 nodes
ok 42
testing '!File', '!Caller' and their variants in Path
ok 43
testing '!Time' and variants in Path
ok 44 - !Time and !Time~1000000 should work
testing &norm_std_n3 in Path
ok 45
ok 46 - &norm_std_n3 should normalize statement
testing code ref in Path
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 47
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 48
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 49 - should be vetoed
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 50 - $_ should contain statement
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 51 - should have @_ as keys
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 52 - should be able to filter by method
ok 53 - output should go to log file
testing as_text
ok 54
ok 55
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935.
ok 56
DBI::Profile: 2.000000s 200.00% (203 calls) 40profile.t @ 2010-05-10 09:20:56
'A' =>
    'Z' =>
        1.000000s / 101 = 0.009901s avg (first 2.000000s, min 3.000000s, max 4.000000s)
'B' =>
    'Y' =>
        1.000000s / 102 = 0.009804s avg (first 2.000000s, min 3.000000s, max 4.000000s)

dbi_profile_merge_nodes
ok 57
ok 58
ok 59
ok 60
# Looks like you failed 5 tests of 60.
Use of uninitialized value in numeric ge (>=) at blib/lib/DBI/Profile.pm line 935 during global destruction.
DBI::Profile: 0.000000s 0.00% (12 calls) 40profile.t @ 2010-05-10 09:20:56
'foo' =>
    'DESTROY' =>
        'baz' =>
            0.000000s
    'FETCH' =>
        'baz' =>
            0.000000s
    'STORE' =>
        'baz' =>
            0.000000s / 5 = 0.000000s avg (first 0.000000s, min 0.000000s, max 0.000000s)
    'connected' =>
        'baz' =>
            0.000000s
    'execute' =>
        'baz' =>
            0.000000s
    'fetchrow_hashref' =>
        'baz' =>
            0.000000s
    'finish' =>
        'baz' =>
            0.000000s
    'prepare' =>
        'baz' =>
            0.000000s
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.