Fix a wrong length in APItest.xs:test_coplabel
authorFather Chrysostomos <sprout@cpan.org>
Mon, 18 Jul 2011 06:02:11 +0000 (23:02 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 18 Jul 2011 06:02:11 +0000 (23:02 -0700)
ext/XS-APItest/APItest.xs

index 232a309..beb7e2c 100644 (file)
@@ -2414,7 +2414,7 @@ test_coplabel()
         Perl_cop_store_label(aTHX_ cop, "foä", 4, SVf_UTF8);
         label = Perl_cop_fetch_label(aTHX_ cop, &len, &utf8);
         if (strcmp(label,"foä")) croak("fail # cop_fetch_label label");
-        if (len != 3) croak("fail # cop_fetch_label len");
+        if (len != 4) croak("fail # cop_fetch_label len");
         if (!utf8) croak("fail # cop_fetch_label utf8");