develooper Front page | perl.perl5.porters | Postings from December 2013

Non deterministic failures with GDBM_File on Darwin

Thread Next
From:
Abigail
Date:
December 20, 2013 12:16
Subject:
Non deterministic failures with GDBM_File on Darwin
Message ID:
20131220121551.GA28494@almanda.fritz.box


If I run "make test" on blead on Darwin 10.8.0, I sometimes get a
failure on ext/GDBM_File/t/fatal.t. I can run the test set several
times in succession, only to have it fail once:


  $ ./perl -Ilib ext/GDBM_File/t/fatal.t
  1..8
  ok 1 - use GDBM_File;
  ok 2 - Can find next available file descriptor
  ok 3 - Check that we cannot open fileno 3. $! is Bad file descriptor
  ok 4 - An object of class 'GDBM_File' isa 'GDBM_File'
  ok 5 - dup fileno 3
  ok 6 - close fileno 3, out from underneath the GDBM_File
  ok 7 - Trapped error when attempting to write to knobbled GDBM_File
  ok 8 - expected error message from GDBM_File
  $ ./perl -Ilib ext/GDBM_File/t/fatal.t
  1..8
  ok 1 - use GDBM_File;
  ok 2 - Can find next available file descriptor
  ok 3 - Check that we cannot open fileno 3. $! is Bad file descriptor
  ok 4 - An object of class 'GDBM_File' isa 'GDBM_File'
  ok 5 - dup fileno 3
  ok 6 - close fileno 3, out from underneath the GDBM_File
  ok 7 - Trapped error when attempting to write to knobbled GDBM_File
  ok 8 - expected error message from GDBM_File
  Illegal instruction
  $ ./perl -Ilib ext/GDBM_File/t/fatal.t
  1..8
  ok 1 - use GDBM_File;
  ok 2 - Can find next available file descriptor
  ok 3 - Check that we cannot open fileno 3. $! is Bad file descriptor
  ok 4 - An object of class 'GDBM_File' isa 'GDBM_File'
  ok 5 - dup fileno 3
  ok 6 - close fileno 3, out from underneath the GDBM_File
  ok 7 - Trapped error when attempting to write to knobbled GDBM_File
  ok 8 - expected error message from GDBM_File
  $


Note the "Illegal instruction" at the second run.




Abigail

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About