[gnumeric] tests: normalize before diff-ing round trip cases.



commit ab54cb5aa68859325b283927d30d81228e22119a
Author: Morten Welinder <terra gnome org>
Date:   Sun Feb 16 20:56:40 2014 -0500

    tests: normalize before diff-ing round trip cases.
    
    We are uninterested in things like gnumeric version numbers having
    changed.

 test/GnumericTest.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 305d985..447020a 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -377,12 +377,12 @@ sub test_roundtrip {
 
     my $tmp_xml = "$tmp.xml";
     &junkfile ($tmp_xml) unless $keep;
-    $code = system ("zcat -f '$file' >'$tmp_xml'");
+    $code = system ("zcat -f '$file' | $PERL normalize-gnumeric >'$tmp_xml'");
     &system_failure ('zcat', $code) if $code;
 
     my $tmp2_xml = "$tmp-new.xml";
     &junkfile ($tmp2_xml) unless $keep;
-    $code = system ("zcat -f '$tmp2' >'$tmp2_xml'");
+    $code = system ("zcat -f '$tmp2' | $PERL normalize-gnumeric >'$tmp2_xml'");
     &system_failure ('zcat', $code) if $code;
 
     $code = system ('diff', '-u', $tmp_xml, $tmp2_xml);


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