You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/10/30 03:39:47 UTC

[lucy-commits] svn commit: r1028964 - in /incubator/lucy/trunk/perl: buildlib/Lucy/ t/ t/binding/

Author: marvin
Date: Sat Oct 30 01:39:46 2010
New Revision: 1028964

URL: http://svn.apache.org/viewvc?rev=1028964&view=rev
Log:
Change name of valgrind debugging environment variable from KINO_VALGRIND to
LUCY_VALGRIND.

Modified:
    incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
    incubator/lucy/trunk/perl/t/025-debug.t
    incubator/lucy/trunk/perl/t/026-serialization.t
    incubator/lucy/trunk/perl/t/109-read_locking.t
    incubator/lucy/trunk/perl/t/111-index_manager.t
    incubator/lucy/trunk/perl/t/216-schema.t
    incubator/lucy/trunk/perl/t/305-indexer.t
    incubator/lucy/trunk/perl/t/510-remote_search.t
    incubator/lucy/trunk/perl/t/511-sort_spec.t
    incubator/lucy/trunk/perl/t/binding/019-obj.t
    incubator/lucy/trunk/perl/t/binding/038-lock_free_registry.t

Modified: incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm Sat Oct 30 01:39:46 2010
@@ -28,7 +28,7 @@ my %cc;
 sub new {
     my ( $class, %args ) = @_;
     require ExtUtils::CBuilder;
-    if ( $ENV{KINO_VALGRIND} ) {
+    if ( $ENV{LUCY_VALGRIND} ) {
         $args{config} ||= {};
         $args{config}{optimize} ||= $Config{optimize};
         $args{config}{optimize} =~ s/\-O\d+/-O1/g;
@@ -101,7 +101,7 @@ sub extra_ccflags {
         }
     }
 
-    if ( $ENV{KINO_VALGRIND} and defined $gcc_version ) {
+    if ( $ENV{LUCY_VALGRIND} and defined $gcc_version ) {
         $extra_ccflags .= "-fno-inline-functions ";
     }
 
@@ -405,7 +405,7 @@ sub ACTION_suppressions {
 
 sub _valgrind_base_command {
     return
-          "PERL_DESTRUCT_LEVEL=2 KINO_VALGRIND=1 valgrind "
+          "PERL_DESTRUCT_LEVEL=2 LUCY_VALGRIND=1 valgrind "
         . "--leak-check=yes "
         . "--show-reachable=yes "
         . "--num-callers=10 "

Modified: incubator/lucy/trunk/perl/t/025-debug.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/025-debug.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/025-debug.t (original)
+++ incubator/lucy/trunk/perl/t/025-debug.t Sat Oct 30 01:39:46 2010
@@ -33,7 +33,7 @@ BEGIN {
     if ( !DEBUG_ENABLED() ) {
         plan( skip_all => 'DEBUG not enabled' );
     }
-    elsif ( $ENV{KINO_VALGRIND} ) {
+    elsif ( $ENV{LUCY_VALGRIND} ) {
         plan( skip_all => 'Tests disabled under valgrind' );
     }
     else {

Modified: incubator/lucy/trunk/perl/t/026-serialization.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/026-serialization.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/026-serialization.t (original)
+++ incubator/lucy/trunk/perl/t/026-serialization.t Sat Oct 30 01:39:46 2010
@@ -76,7 +76,7 @@ my $bb = KinoSearch::Object::ByteBuf->ne
 run_test_cycle( $bb, sub { shift->to_perl } );
 
 SKIP: {
-    skip( "Invalid deserialization causes leaks", 1 ) if $ENV{KINO_VALGRIND};
+    skip( "Invalid deserialization causes leaks", 1 ) if $ENV{LUCY_VALGRIND};
     my $bad_obj = BadObj->new("Royale With Cheese");
     eval {
         run_test_cycle( $bad_obj, sub { ref( $_[0] ) } );

Modified: incubator/lucy/trunk/perl/t/109-read_locking.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/109-read_locking.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/109-read_locking.t (original)
+++ incubator/lucy/trunk/perl/t/109-read_locking.t Sat Oct 30 01:39:46 2010
@@ -73,7 +73,7 @@ is( $num_snap_files, 2, "didn't zap the 
 my $reader;
 SKIP: {
     skip( "IndexReader opening failure leaks", 1 )
-        if $ENV{KINO_VALGRIND};
+        if $ENV{LUCY_VALGRIND};
     eval {
         $reader = KinoSearch::Index::IndexReader->open(
             index   => $folder,

Modified: incubator/lucy/trunk/perl/t/111-index_manager.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/111-index_manager.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/111-index_manager.t (original)
+++ incubator/lucy/trunk/perl/t/111-index_manager.t Sat Oct 30 01:39:46 2010
@@ -119,7 +119,7 @@ is( $manager->get_deletion_lock_interval
     6, "set/get deletion lock interval" );
 
 SKIP: {
-    skip( "Known leak", 1 ) if $ENV{KINO_VALGRIND};
+    skip( "Known leak", 1 ) if $ENV{LUCY_VALGRIND};
     my $indexer = KinoSearch::Index::Indexer->new(
         index   => $folder,
         manager => BogusManager->new,

Modified: incubator/lucy/trunk/perl/t/216-schema.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/216-schema.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/216-schema.t (original)
+++ incubator/lucy/trunk/perl/t/216-schema.t Sat Oct 30 01:39:46 2010
@@ -32,7 +32,7 @@ pass("Stub class KinoSearch::Schema pass
 
 my $schema;
 SKIP: {
-    skip( "constructor bailouts cause leaks", 1 ) if $ENV{KINO_VALGRIND};
+    skip( "constructor bailouts cause leaks", 1 ) if $ENV{LUCY_VALGRIND};
 
     $schema = KinoSearch::Test::TestSchema->new;
     eval { $schema->spec_field( name => 'foo', type => 'NotAType' ) };

Modified: incubator/lucy/trunk/perl/t/305-indexer.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/305-indexer.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/305-indexer.t (original)
+++ incubator/lucy/trunk/perl/t/305-indexer.t Sat Oct 30 01:39:46 2010
@@ -39,7 +39,7 @@ $indexer->add_doc( { content => 'foo' } 
 pass("Indexer ignores garbage from interrupted session");
 
 SKIP: {
-    skip( "Known leak, though might be fixable", 2 ) if $ENV{KINO_VALGRIND};
+    skip( "Known leak, though might be fixable", 2 ) if $ENV{LUCY_VALGRIND};
     eval {
         my $manager
             = KinoSearch::Index::IndexManager->new( host => 'somebody_else' );

Modified: incubator/lucy/trunk/perl/t/510-remote_search.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/510-remote_search.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/510-remote_search.t (original)
+++ incubator/lucy/trunk/perl/t/510-remote_search.t Sat Oct 30 01:39:46 2010
@@ -25,7 +25,7 @@ BEGIN {
     if ( $^O =~ /mswin/i ) {
         plan( 'skip_all', "fork on Windows not supported by KS" );
     }
-    elsif ( $ENV{KINO_VALGRIND} ) {
+    elsif ( $ENV{LUCY_VALGRIND} ) {
         plan( 'skip_all', "time outs cause probs under valgrind" );
     }
 }

Modified: incubator/lucy/trunk/perl/t/511-sort_spec.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/511-sort_spec.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/511-sort_spec.t (original)
+++ incubator/lucy/trunk/perl/t/511-sort_spec.t Sat Oct 30 01:39:46 2010
@@ -215,7 +215,7 @@ my $results = test_sorted_search( 'vehic
 is_deeply( $results, [qw( airplane bike car )], "sort by one criteria" );
 
 SKIP: {
-    skip( "known leaks", 2 ) if $ENV{KINO_VALGRIND};
+    skip( "known leaks", 2 ) if $ENV{LUCY_VALGRIND};
     eval { $results = test_sorted_search( 'vehicle', 100, nope => 0 ) };
     like( $@, qr/sortable/,
         "sorting on a non-sortable field throws an error" );

Modified: incubator/lucy/trunk/perl/t/binding/019-obj.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/binding/019-obj.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/binding/019-obj.t (original)
+++ incubator/lucy/trunk/perl/t/binding/019-obj.t Sat Oct 30 01:39:46 2010
@@ -112,7 +112,7 @@ my $dupe   = thaw($frozen);
 is( ref($dupe), ref($object), "override serialize/deserialize" );
 
 SKIP: {
-    skip( "Invalid serialization causes leaks", 1 ) if $ENV{KINO_VALGRIND};
+    skip( "Invalid serialization causes leaks", 1 ) if $ENV{LUCY_VALGRIND};
     my $bad = BadSerialize->new;
     eval { my $froze = freeze($bad); };
     like( $@, qr/empty/i,
@@ -121,7 +121,7 @@ SKIP: {
 
 SKIP: {
     skip( "Exception thrown within callback leaks", 1 )
-        if $ENV{KINO_VALGRIND};
+        if $ENV{LUCY_VALGRIND};
     $hash = KinoSearch::Object::Hash->new;
     $hash->store( foo => BadDump->new );
     eval { $hash->dump };

Modified: incubator/lucy/trunk/perl/t/binding/038-lock_free_registry.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/binding/038-lock_free_registry.t?rev=1028964&r1=1028963&r2=1028964&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/binding/038-lock_free_registry.t (original)
+++ incubator/lucy/trunk/perl/t/binding/038-lock_free_registry.t Sat Oct 30 01:39:46 2010
@@ -19,7 +19,7 @@ use warnings;
 use Config;
 use Test::More;
 BEGIN {
-    if ( $ENV{KINO_VALGRIND} ) {
+    if ( $ENV{LUCY_VALGRIND} ) {
         plan( skip_all => 'Known leaks' );
     }
     elsif ( $Config{usethreads} ) {