]> git.sesse.net Git - xml-template/commitdiff
All xml-diff errors should be fatal.
authorsgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:57:44 +0000 (17:57 +0200)
committersgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:57:44 +0000 (17:57 +0200)
tests/xml-diff.pl

index 023ce1345f397e21ea7a54011e2b882ce89f8080..eed51b40c153a23a5956a24e4aca0e8fca02d414 100644 (file)
@@ -142,11 +142,12 @@ sub compare_attr_list {
 
                if (!defined($attr2_found)) {
                        print STDERR "Attribute $nsuri1/$lname1 exists on one side but not the other\n";
-                       last;
+                       exit(1);
                }
 
                if ($attr1->getValue ne $attr2_found->getValue) {
                        print STDERR "Attribute $nsuri1/$lname1 has differing values\n";
+                       exit(1);
                }
        }
 }