<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1069</bug_id>
          
          <creation_ts>2011-05-12 19:47:33 +0000</creation_ts>
          <short_desc>Run LSB perl test, op/pat.t will failed</short_desc>
          <delta_ts>2011-05-19 19:21:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Kang">kai.kang</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>jingdong.lu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13771</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-05-12 19:47:33 +0000</bug_when>
    <thetext>when run lsb perl test on both x86 and ppc, it will fail at op/opt.t, and the information:

FAILED tests 940-4009 Failed 3070/4009 tests, 23.42% okay

when go to the test directory /opt/lsb/test/perl and then run:

# ./single_test op/pat.t

error messages are as follow:

ok 936 - postponed utf8 string in utf8 re doesn&apos;t match non-utf8
ok 937 - postponed utf8 string in non-utf8 re doesn&apos;t match non-utf8
# more user-defined character properties
ok 938 - \x{0712}, \p{IsSyriac1}        Line 2991
ok 939 - \x{072F}, \P{IsSyriac1}        Line 2992
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 940-4009
        Failed 3070/4009 tests, 23.42% okay
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
op/pat.t     255 65280  4009 6140  940-4009
Failed 1/1 test scripts. 3070/4009 subtests failed.
Files=1, Tests=4009, 34 wallclock secs ( 9.16 cusr +  1.57 csys = 10.73 CPU)
Failed 1/1 test programs. 3070/4009 subtests failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13893</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-05-19 02:46:15 +0000</bug_when>
    <thetext>Jingdong help to find the root cause</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13916</commentid>
    <comment_count>2</comment_count>
    <who name="Jingdong Lu">jingdong.lu</who>
    <bug_when>2011-05-19 19:21:32 +0000</bug_when>
    <thetext>Run the following scripts which cause perl test failed.

#!./perl
require &apos;./test.pl&apos;;
sub Syriac1 {
    return &lt;&lt;&apos;END&apos;;
0712    072C
0730    074A
END
}
ok(&quot;\x{0712}&quot; =~ /\p{Syriac1}/, &apos;\x{0712}, \p{Syriac1}&apos;);
ok(&quot;\x{072F}&quot; =~ /\P{Syriac1}/, &apos;\x{072F}, \p{Syriac1}&apos;);

Result on perl 5.12.3:
Can&apos;t find Unicode property definition &quot;Syriac1&quot; at pat.t line 13.

Result on perl 5.12.2:
ok 1 - \x{0712}, \p{Syriac1}
ok 2 - \x{072F}, \p{Syriac1}

According to the following update of perl from 5.12.2 to 5.12.3, we know that creating custom properties by defining subroutines became strict and it should begin with &quot;In&quot; or &quot;Is&quot;. So the update of perl and lsb test are out of phase and it cause these failures.

commit d658a8a81c4f311bef688fd51df924a424429f14
Author: David Mitchell &lt;davem@iabyn.com&gt;
Date:   Sun Jan 16 14:16:20 2011 +0000

    restrict \p{IsUserDefined} to In\w+ and In\w+
    
    In L&lt;perlunicode/&quot;User-Defined Character Properties&quot;&gt;, it says you can
    create custom properties by defining subroutines whose names begin with
    &quot;In&quot; or &quot;Is&quot;. However, perl doesn&apos;t actually enforce that naming
    restriction, so \p{foo::bar} will call foo::Bar() if it exists.
    
    This commit finally enforces this convention. Note that this broke a
    number of existing tests for properties, since they didn&apos;t always use an
    Is/In prefix.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>