Bugzilla – Bug 367
WFCT_Utils_testElementBooleanAttrib: incorrect checking of the return code
Last modified: 2010-11-09 06:08:42 PST
In the wfc_test_utils.c file, the function "WFCT_Utils_testElementBooleanAttrib" tests the setting of an incorrect parameter : [ wfc_test_utils.c, line 224] "/* Set bad handle (float) */" wfcSetElementAttribf(appCtx->dev, WFC_INVALID_HANDLE, attrib, expectedf); WFCT_CHECK_ERROR(WFC_ERROR_BAD_ATTRIBUTE, "Raised wrong or no error for bad handle (float setter)."); valuef = wfcGetElementAttribf(appCtx->dev, WFC_INVALID_HANDLE, attrib); WFCT_CHECK_ERROR(WFC_ERROR_BAD_ATTRIBUTE, "Raised wrong or no error for bad handle (float getter)."); The return code for such an invalid attribute (WFC_INVALID_HANDLE) should be (and actually is) WFC_ERROR_BAD_HANDLE, not WFC_ERROR_BAD_ATTRIBUTE as in the above code.
Moved this bug to internal Bugzilla.
*** Bug 368 has been marked as a duplicate of this bug. ***
*** Bug 369 has been marked as a duplicate of this bug. ***