#NEWLINE# def determine_result( self , returncode , returnsignal , output , isTimeout ) : #NEWLINE# #INDENT# if ( ( returnsignal == 0 ) and ( ( returncode == 0 ) or ( returncode == 10 ) ) ) : #NEWLINE# #INDENT# status = result . RESULT_ERROR #NEWLINE# if ( '--xml-ui' in self . options ) : #NEWLINE# #INDENT# status = self . parse_XML ( output , returncode , isTimeout ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( output ) > 0 ) : #NEWLINE# #INDENT# result_str = output [ ( - 1 ) ] . strip ( ) #NEWLINE# if ( result_str == 'TRUE' ) : #NEWLINE# #INDENT# status = result . RESULT_TRUE_PROP #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'FALSE' in result_str ) : #NEWLINE# #INDENT# if ( result_str == 'FALSE(valid-memtrack)' ) : #NEWLINE# #INDENT# status = result . RESULT_FALSE_MEMTRACK #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( result_str == 'FALSE(valid-deref)' ) : #NEWLINE# #INDENT# status = result . RESULT_FALSE_DEREF #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( result_str == 'FALSE(valid-free)' ) : #NEWLINE# #INDENT# status = result . RESULT_FALSE_FREE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( result_str == 'FALSE(no-overflow)' ) : #NEWLINE# #INDENT# status = result . RESULT_FALSE_OVERFLOW #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# status = result . RESULT_FALSE_REACH #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'UNKNOWN' in output ) : #NEWLINE# #INDENT# status = result . RESULT_UNKNOWN #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( returncode == 64 ) and ( 'Usage error!' in output ) ) : #NEWLINE# #INDENT# status = 'INVALID ARGUMENTS' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# status = result . RESULT_ERROR #NEWLINE# #UNINDENT# #UNINDENT# return status