Fixing some things, tests resumed

This commit is contained in:
Leonardo Vencovsky committed 2020-06-08 21:14:56 -03:00
1 parent aec7efd4c3
commit 2b8f778c59
26 files changed
+2652 -1953

No files matched your search

+5 -5
View File
@@ -453,8 +453,8 @@
{ \
if (_map_->f_key->cmp(_map_->buffer[i].key, max_key) > 0) \
{ \
max_key = _map_->buffer[first].key; \
max_val = _map_->buffer[first].value; \
max_key = _map_->buffer[i].key; \
max_val = _map_->buffer[i].value; \
} \
} \
} \
@@ -495,10 +495,10 @@
{ \
if (_map_->buffer[i].state == CMC_ES_FILLED) \
{ \
if (_map_->f_key->cmp(_map_->buffer[i].key, min_key) > 0) \
if (_map_->f_key->cmp(_map_->buffer[i].key, min_key) < 0) \
{ \
min_key = _map_->buffer[first].key; \
min_val = _map_->buffer[first].value; \
min_key = _map_->buffer[i].key; \
min_val = _map_->buffer[i].value; \
} \
} \
} \
+10 -1
View File
@@ -16,6 +16,15 @@
/**
* All the EXT parts of CMC BitSet.
*/
#define CMC_EXT_CMC_BITSET_PARTS
#define CMC_EXT_CMC_BITSET_PARTS PLACEHOLDER
#define CMC_EXT_CMC_BITSET_PLACEHOLDER(PARAMS)
#define CMC_EXT_CMC_BITSET_PLACEHOLDER_HEADER(PARAMS)
#define CMC_EXT_CMC_BITSET_PLACEHOLDER_SOURCE(PARAMS)
#define CMC_EXT_CMC_BITSET_PLACEHOLDER_HEADER_(PFX, SNAME, V)
#define CMC_EXT_CMC_BITSET_PLACEHOLDER_SOURCE_(PFX, SNAME, V)
#endif /* CMC_EXT_CMC_BITSET_H */
-15
View File
@@ -136,12 +136,6 @@ CMC_UNUSED static void cmc_test_log(const char *unit_name, const char *current_t
BODY; \
\
cmc_timer_stop(timer); \
\
unittest_abort: \
if (tinfo.aborted) \
{ \
cmc_test_log(unit_name, current_test, true, false); \
} \
\
tinfo.assert_total = cmc_assert_total - tinfo.assert_total; \
tinfo.assert_failed = cmc_assert_failed - tinfo.assert_failed; \
@@ -225,13 +219,4 @@ CMC_UNUSED static void cmc_test_log(const char *unit_name, const char *current_t
\
} while (0)
#define CMC_TEST_ABORT() \
do \
{ \
tinfo.aborted = true; \
tinfo.total -= 1; \
goto unittest_abort; \
\
} while (0)
#endif /* CMC_UTL_TEST_H */