mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-19 19:51:06 +00:00
complete: Update test for unit test framework
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6a19fa7e93
commit
73ae8ba098
1 file changed
+2
-9
+2
-9
@@ -23,13 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include "check.h"
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h> /* intptr_t */
|
|
||||||
|
|
||||||
#include "uev.h"
|
|
||||||
|
|
||||||
#define UNUSED(arg) arg __attribute__ ((unused))
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int counter;
|
int counter;
|
||||||
@@ -138,8 +132,7 @@ int main(void)
|
|||||||
uev_run(&ctx, 0);
|
uev_run(&ctx, 0);
|
||||||
|
|
||||||
fprintf(stderr, "Period is %d must be 10: %s\n", period, 10 == period ? "OK" : "ERROR!");
|
fprintf(stderr, "Period is %d must be 10: %s\n", period, 10 == period ? "OK" : "ERROR!");
|
||||||
if (10 != period)
|
fail_unless(10 == period);
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user