Ticket #1974: fix-gmp-test.patch

File fix-gmp-test.patch, 0.6 KB (added by rgrjr, 3 years ago)

Patch to correct "gmp" config test

  • t/dynoplibs/trans.t

    diff --git a/t/dynoplibs/trans.t b/t/dynoplibs/trans.t
    index f64e222..bc8e990 100644
    a b  
    493493    config = interp[.IGLOBALS_CONFIG_HASH] 
    494494    .local int intvalsize 
    495495    intvalsize = config['intvalsize'] 
    496     .local int gmp 
     496    .local string gmp 
    497497    gmp = config['gmp'] 
    498498 
    499499    if intvalsize != 4 goto can_test 
    500     if gmp goto can_test 
     500    if gmp == 'define' goto can_test 
    501501        skip(40,'No integer overflow for 32-bit INTVALs without GMP installed') 
    502502        goto end 
    503503