[drmaa-wg] DRMAA for Torque

Peter Troeger peter.troeger at hpi.uni-potsdam.de
Sat Feb 4 14:46:56 CST 2006


Am 04.02.2006 um 21:26 schrieb Peter Troeger:

>> Meanwhile I'm surprised by something: in the ST_SUPPORTED_ATTR  
>> test the
>> program checks the drmaa_get_next_attr_name() return code,  
>> comparing it
>> with DRMAA_ERRNO_SUCCESS and then with
>> DRMAA_ERRNO_INVALID_ATTRIBUTE_VALUE. If the return code is neither of
>> these values, the test fails. I understood that the
>> drmaa_get_next_attr_name() function was supposed to return
>> DRMAA_ERRNO_NO_MORE_ELEMENTS when the end of the list is reached.  
>> That's
>> what my lib does, and the therefore the test fails.
>>
>> Where am I wrong ?
>
> Nowhere. I will fix this immediately. The more interesting question  
> is while earlier tests with other implementations didn't brought  
> that up (Dan, Andreas ?).

Ok, I found it. The C-binding spec 1.0 introduced  
DRMAA_ERRNO_NO_MORE_ELEMENTS as new error code (see also tracker  
issue #1173). SGE, Condor and the current test suite where mainly  
implemented according to C-binding v0.95, so this is a historical bug.

Peter.

>
> Thanks !
>
> Peter.
>
>>
>> Thanks for the help.
>>
>> Matthieu Cargnelli
>





More information about the drmaa-wg mailing list