diff test/callback_suite/do_test.c @ 410:7608e34098b0

- cleanups, simplifications, some api clarification, ... - test cases consistency: * return status code depending on test results (for actual conformance tests, not stuff that is not an example or hack to check something, ..) * platform init helper added for some
author Tassilo Philipp
date Tue, 05 Oct 2021 21:53:04 +0200
parents f5577f6bf97a
children d8f0e6cecdab
line wrap: on
line diff
--- a/test/callback_suite/do_test.c	Sun Oct 03 19:41:41 2021 +0200
+++ b/test/callback_suite/do_test.c	Tue Oct 05 21:53:04 2021 +0200
@@ -30,7 +30,6 @@
 #include "sigstrings.h"
 #include "signature_utils.h"
 #include "env.h"
-#include "print.h"
 #include "../common/platformInit.h"
 
 int CompareValues(char type, DCValue* a, DCValue* b)
@@ -115,13 +114,13 @@
   index = id - 1;
   
   signature = GetSignature(index);
-  PrintCaseInfo(id,signature);
+  printf("f%d(\t%s", id, signature);
 
   pcb = dcbNewCallback( signature, handler, (void*) signature );
   assert(pcb != NULL);
   DoInvoke(index, (void*) pcb);
   result = Compare(signature); 
-  PrintCaseResult(result);
+  printf(" :%d\n", result);
   dcbFreeCallback(pcb);
   return result;
 }