diff test/callback_plain/callback_plain.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 9269d17a8f99
children 71c884e610f0
line wrap: on
line diff
--- a/test/callback_plain/callback_plain.c	Sun Oct 03 19:41:41 2021 +0200
+++ b/test/callback_plain/callback_plain.c	Tue Oct 05 21:53:04 2021 +0200
@@ -6,7 +6,7 @@
  Description: 
  License:
 
-   Copyright (c) 2011-2018 Daniel Adler <dadler@uni-goettingen.de>,
+   Copyright (c) 2011-2021 Daniel Adler <dadler@uni-goettingen.de>,
                            Tassilo Philipp <tphilipp@potion-studios.com>
 
    Permission to use, copy, modify, and distribute this software for any
@@ -74,10 +74,11 @@
   printf("successfully returned from callback\n");
   printf("return value (should be 1234): %d\n", result);
 
-  printf("result: callback_plain: %s\n", (userdata == 6) && (result == 1234) ? "1" : "0");
+  result = (userdata == 6) && (result == 1234);
+  printf("result: callback_plain: %d\n", result);
 
   dcTest_deInitPlatform();
 
-  return 0;
+  return !result;
 }