From 423138606eabcae2b9960d1a9841f0ca51f9fd46 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 12 Dec 2010 20:48:56 +1300 Subject: [PATCH] Updating test for systprefs to give more useful output --- xt/syspref.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xt/syspref.t b/xt/syspref.t index d4ab62324e..1b7c43839d 100755 --- a/xt/syspref.t +++ b/xt/syspref.t @@ -90,7 +90,7 @@ sub compare_syspref { push @to_add_sysprefs, $_ if ! $trans_syspref->{$_}; } if ( $#to_add_sysprefs >= 0 ) { - fail( 'No syspref to add') or diag( "Sysprefs to add in $trans_file: " . join(', ', @to_add_sysprefs ) ); + fail("Sysprefs to add in $trans_file: " . join(', ', @to_add_sysprefs ) ); } else { pass( 'No syspref to add' ); @@ -101,7 +101,7 @@ sub compare_syspref { push @to_delete_sysprefs, $_ if ! $ref_syspref->{$_}; } if ( $#to_delete_sysprefs >= 0 ) { - fail( 'No syspref to delete' ); + fail( 'sysprefs to delete' ); diag( "Sysprefs to delete in $trans_file: " . join(', ', @to_delete_sysprefs ) ); diag( 'Warning: Some of those sysprefs may rather have to be added to English sysprefs' ); } -- 2.11.0