Update failure tests as per latest checks

This commit is contained in:
Patrick Pelissier committed 2020-05-11 20:55:16 +02:00
1 parent 6774afd751
commit da0ab5ea98
2 files changed
+42 -1

No files matched your search

+1 -1
View File
@@ -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 31 32 33 34 35 36 37 38 ; 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 39 40 41 42 43 44 ; 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
+41
View File
@@ -282,6 +282,47 @@ SNAPSHOT_SPMC_DEF(snap, int, M_DEFAULT_OPLIST2 )
SNAPSHOT_MPMC_DEF(snap, int, M_DEFAULT_OPLIST8 )
#elif TEST == 39
#include "m-tuple.h"
TUPLE_DEF2(agregate, (x, int, M_DEFAULT_OPLIST), (y, float, DEFAULT_OPLIST) )
#elif TEST == 40
#include "m-tuple.h"
TUPLE_DEF2(agregate, (x, int, DEFAULT_OPLIST), (y, float) )
#elif TEST == 41
#include "m-variant.h"
VARIANT_DEF2(agregate, (x, int, M_DEFAULT_OPLIST), (y, float, DEFAULT_OPLIST) )
#elif TEST == 42
#include "m-variant.h"
VARIANT_DEF2(agregate, (x, int, DEFAULT_OPLIST), (y, float) )
#elif TEST == 43
#include "m-funcobj.h"
FUNC_OBJ_ITF_DEF(itf, int, int)
FUNC_OBJ_INS_DEF(ins, itf, (x), { return x * self->a + self->b; }, (a, int, DEFAULT_OPLIST), (b, int, M_DEFAULT_OPLIST))
#elif TEST == 44
#include "m-funcobj.h"
FUNC_OBJ_ITF_DEF(itf, int, int)
FUNC_OBJ_INS_DEF(ins, itf, (x), { return x * self->a + self->b; }, (a, int), (b, int, M_DEFAULT_OPLIST() ))
#else
# warning TEST variable is out of range.
#endif