Anush Elangovan wrote:

> Im seeing a failure when trying to do a "make check" in autogen 5.8.6
>
> FAILURE: *** equiv-base.out     Wed Oct  4 15:12:10 2006
> --- equiv.out   Wed Oct  4 15:12:10 2006
> ***************
> *** 26,32 ****
>  export OPTION_CT
>  TEST_EQUIV_ALPHA_MODE='GAMMA'
>  export TEST_EQUIV_ALPHA_MODE
> ! TEST_EQUIV_GAMMA='false'
>  export TEST_EQUIV_GAMMA
>  === --omega tres ===
>  OPTION_CT=2
> --- 26,32 ----
>  export OPTION_CT
>  TEST_EQUIV_ALPHA_MODE='GAMMA'
>  export TEST_EQUIV_ALPHA_MODE
> ! TEST_EQUIV_GAMMA='true'
>  export TEST_EQUIV_GAMMA
>  === --omega tres ===
>  OPTION_CT=2
> FAIL: equiv.test
>
>
> On the same system, I built a autogen-5.8.5 package and it work 
> flawlessly.
>
> Thanks
> Anush
>
*WHICH* system, please?  That makes for interesting situation.
The "gamma" option examines its argument and decides if it is
"true" or "false".  From the usage:
      T/F gamma          gamma opt

The invocation that created this output:

  echo === --gamma false ===
  ./${testname} --gamma false
  echo === --omega tres ===

It looks like the option argument was the string "false".
The function to handle the string is here:

void
optionBooleanVal( tOptions* pOpts, tOptDesc* pOD )
{
    long  val;
    char* pz;
    ag_bool  res = AG_TRUE;

    switch (*(pOD->optArg.argString)) {
    case '0':
        val = strtol( pOD->optArg.argString, &pz, 0 );
        if ((val != 0) || (*pz != NUL))
            break;
        /* FALLTHROUGH */
    case 'N':
    case 'n':
    case 'F':
    case 'f':
    case NUL:
        res = AG_FALSE;
        break;
    case '#':
        if (pOD->optArg.argString[1] != 'f')
            break;
        res = AG_FALSE;
    }

    pOD->optArg.argBool = res;
}

Something is seriously awry.  I will need to know more about your platform.
Thank you. - Bruce

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to