depends on how you read the question. if you try something with the intent to fail, but you instead succeed, then you fail because you did not get the thing (failure) you desired.
if you try to fail and you indeed fail, then you succeed because you got the thing (failure) you desired.
but, if an outsider sees that you fail, then you fail.