Ticket #1364: fix_make_coretest.patch

File fix_make_coretest.patch, 1.4 KB (added by bubaflub, 12 years ago)

patch to not need like() in tests

  • config/gen/crypto.pm

    diff --git config/gen/crypto.pm config/gen/crypto.pm
    index ac9b775..6defad4 100644
     
    4141            md_inc => 'ripemd', 
    4242        }, 
    4343        SHA         => { 
    44             md_result => '<[0..9a..f]>**{40}', 
     44            md_result => 'c1b0f222d150ebb9aa36a40cafdc8bcbed830b14', 
    4545        }, 
    4646        SHA1        => { 
    4747            md_result => 'c12252ceda8be8994d5fa0290a47231c1d16aae3', 
  • config/gen/crypto/digest_t.in

    diff --git config/gen/crypto/digest_t.in config/gen/crypto/digest_t.in
    index 8cf48c7..aa5b181 100644
     
    6969    $S3 .= $S2 
    7070    goto L1 
    7171  L2: 
    72     like($S3, '@TEMP_md_result@', '@TEMP_md_name@ digest') 
     72    is($S3, '@TEMP_md_result@', '@TEMP_md_name@ digest') 
    7373.end 
    7474 
    7575# Local Variables: 
  • t/op/inf_nan.t

    diff --git t/op/inf_nan.t t/op/inf_nan.t
    index 930e03a..d3e053f 100644
     
    316316.sub test_asec 
    317317    $N0 = 'Inf' 
    318318    $N1 = asec $N0 
    319     like($N1, '1\.5707963.*', 'asec: asec Inf') 
     319    is($N1, '1.5707963267949', 'asec: asec Inf') 
    320320    $N0 = '-Inf' 
    321321    $N1 = asec $N0 
    322     like($N1, '1\.5707963.*', '... asec -Inf') 
     322    is($N1, '1.5707963267949', '... asec -Inf') 
    323323    $N0 = 'NaN' 
    324324    $N1 = asec $N0 
    325325    is($N1, 'NaN', 'asec NaN')