@ -30,6 +30,7 @@
# if ENABLE_JUNIT_XML
# if ENABLE_JUNIT_XML
# include <fcntl.h>
# include <fcntl.h>
# include <inttypes.h>
# include <libxml/parser.h>
# include <libxml/parser.h>
# include <memory.h>
# include <memory.h>
# include <stdio.h>
# include <stdio.h>
@ -128,12 +129,12 @@ emit_event(xmlNodePtr parent, struct zuc_event *event)
}
}
} else {
} else {
if ( asprintf ( & msg , " %s:%d: error: Value of: %s \n "
if ( asprintf ( & msg , " %s:%d: error: Value of: %s \n "
" Actual: %l d \n "
" Actual: % " PRI dPTR " \n "
" Expected: %s \n "
" Expected: %s \n "
" Which is: %l d \n " ,
" Which is: % " PRI dPTR " \n " ,
event - > file , event - > line , event - > expr2 ,
event - > file , event - > line , event - > expr2 ,
event - > val2 , event - > expr1 ,
event - > val2 , event - > expr1 ,
event - > val1 ) < 0 ) {
event - > val1 ) < 0 ) {
msg = NULL ;
msg = NULL ;
}
}
}
}
@ -151,12 +152,12 @@ emit_event(xmlNodePtr parent, struct zuc_event *event)
}
}
} else {
} else {
if ( asprintf ( & msg , " %s:%d: error: "
if ( asprintf ( & msg , " %s:%d: error: "
" Expected: (%s) %s (%s), "
" Expected: (%s) %s (%s), "
" actual: %l d vs %l d \n " ,
" actual: % " PRI dPTR " vs % " PRI dPTR " \n " ,
event - > file , event - > line ,
event - > file , event - > line ,
event - > expr1 , zuc_get_opstr ( event - > op ) ,
event - > expr1 , zuc_get_opstr ( event - > op ) ,
event - > expr2 , event - > val1 ,
event - > expr2 , event - > val1 ,
event - > val2 ) < 0 ) {
event - > val2 ) < 0 ) {
msg = NULL ;
msg = NULL ;
}
}
}
}
@ -181,10 +182,11 @@ emit_event(xmlNodePtr parent, struct zuc_event *event)
break ;
break ;
default :
default :
if ( asprintf ( & msg , " %s:%d: error: "
if ( asprintf ( & msg , " %s:%d: error: "
" Expected: (%s) %s (%s), actual: %ld vs %ld \n " ,
" Expected: (%s) %s (%s), actual: % " PRIdPTR " vs "
event - > file , event - > line ,
" % " PRIdPTR " \n " ,
event - > expr1 , zuc_get_opstr ( event - > op ) ,
event - > file , event - > line ,
event - > expr2 , event - > val1 , event - > val2 ) < 0 ) {
event - > expr1 , zuc_get_opstr ( event - > op ) ,
event - > expr2 , event - > val1 , event - > val2 ) < 0 ) {
msg = NULL ;
msg = NULL ;
}
}
}
}