Update tests
This commit is contained in:
1 parent
45d2a529b5
commit
8c479b2e5a
2 files changed
+54
-1
No files matched your search
+1
-1
@@ -83,7 +83,7 @@ checkfail: fail-no-oplist
|
||||
|
||||
# TODO: should grep failure message?
|
||||
fail-no-oplist:
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ; do \
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ; do \
|
||||
if $(CC) $(CFLAGS) $(CPPFLAGS) -g -c fail-no-oplist.c -o tmp.o -DTEST=$$i 2> fail-no-oplist-$$i.log ; then echo fail-no-oplist-$$i : ERROR; false; else echo fail-no-oplist-$$i : OK ; fi \
|
||||
done
|
||||
|
||||
|
||||
@@ -203,6 +203,59 @@ DICT_SET_DEF(array, int, DEFAULT_OPLIST)
|
||||
|
||||
DICT_OASET_DEF(array, int, DEFAULT_OPLIST)
|
||||
|
||||
#elif TEST == 31
|
||||
|
||||
#include "m-i-shared.h"
|
||||
|
||||
typedef struct tmp_s {
|
||||
ISHARED_PTR_INTERFACE(tmpi, struct_tmp_s);
|
||||
const char *s;
|
||||
} tmp_t;
|
||||
|
||||
ISHARED_PTR_DEF(tmpi, tmp_t, NOT_AN_OPLIST)
|
||||
|
||||
#elif TEST == 32
|
||||
|
||||
#include "m-prioqueue.h"
|
||||
|
||||
PRIOQUEUE_DEF(prio, int, DEFAULT_OPLIST)
|
||||
|
||||
#elif TEST == 33
|
||||
|
||||
#include "m-rbtree.h"
|
||||
|
||||
RBTREE_DEF(tree, int, M_DEFAULT_OPLIST() )
|
||||
|
||||
#elif TEST == 34
|
||||
|
||||
#include "m-shared.h"
|
||||
|
||||
SHARED_PTR_DEF(shared, int, M_DEFAULT_OPLIST2 )
|
||||
|
||||
#elif TEST == 35
|
||||
|
||||
#include "m-shared.h"
|
||||
|
||||
SHARED_RESOURCE_DEF(shared, int, M_DEFAULT_OPLIST3 )
|
||||
|
||||
#elif TEST == 36
|
||||
|
||||
#include "m-snapshot.h"
|
||||
|
||||
SNAPSHOT_SPSC_DEF(snap, int, M_DEFAULT_OPLIST2 )
|
||||
|
||||
#elif TEST == 37
|
||||
|
||||
#include "m-snapshot.h"
|
||||
|
||||
SNAPSHOT_SPMC_DEF(snap, int, M_DEFAULT_OPLIST2 )
|
||||
|
||||
#elif TEST == 38
|
||||
|
||||
#include "m-snapshot.h"
|
||||
|
||||
SNAPSHOT_MPMC_DEF(snap, int, M_DEFAULT_OPLIST8 )
|
||||
|
||||
#else
|
||||
# warning TEST variable is out of range.
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user