Browse files

Remove unneeded stubs from the unit tests

  • Loading branch information...
1 parent f4080d1 commit 17ccbbb9730c9a458802b0c1e34c3560e38c2451 @dottedmag dottedmag committed Apr 19, 2012
Showing with 0 additions and 93 deletions.
  1. +0 −12 tests/unit/alloc_test.c
  2. +0 −42 tests/unit/lastseen_migration_test.c
  3. +0 −39 tests/unit/lastseen_test.c
View
12 tests/unit/alloc_test.c
@@ -44,15 +44,3 @@ int main()
return run_tests(tests);
}
-
-/* LCOV_EXCL_START */
-
-/* Stub out functions we do not use in test */
-
-void FatalError(char *s, ...)
-{
- fail();
- exit(42);
-}
-
-/* LCOV_EXCL_STOP */
View
42 tests/unit/lastseen_migration_test.c
@@ -253,46 +253,9 @@ const char *SHIFT_TEXT[] = {};
pthread_mutex_t *cft_output;
char VIPADDRESS[18];
RSA *PUBKEY;
-
-void Chop(char *str)
-{
- fail();
-}
-
-AlphaListIterator AlphaListIteratorInit(AlphaList *al)
-{
- fail();
-}
-
-const Item *AlphaListIteratorNext(AlphaListIterator *iterator)
-{
- fail();
-}
-
-Item *IdempPrependItem(Item **liststart, const char *itemstring, const char *classes)
-{
- fail();
-}
-
-bool IsItemIn(Item *list, const char *item)
-{
- fail();
-}
-
int DEBUG;
-
-void DeleteItemList(Item *item)
-{
- fail();
-}
-
int MINUSF;
-bool IsStrIn(const char *str, const char **strs)
-{
- fail();
-}
-
char *MapAddress(char *addr)
{
fail();
@@ -317,8 +280,3 @@ void HashPubKey(RSA *key, unsigned char digest[EVP_MAX_MD_SIZE + 1], enum cfhash
{
fail();
}
-
-void *GetConstraintValue(char *lval, Promise *promise, char type)
-{
- fail();
-}
View
39 tests/unit/lastseen_test.c
@@ -196,45 +196,10 @@ pthread_mutex_t *cft_output;
char VIPADDRESS[18];
RSA *PUBKEY;
-void Chop(char *str)
-{
- fail();
-}
-
-AlphaListIterator AlphaListIteratorInit(AlphaList *al)
-{
- fail();
-}
-
-const Item *AlphaListIteratorNext(AlphaListIterator *iterator)
-{
- fail();
-}
-
-Item *IdempPrependItem(Item **liststart, const char *itemstring, const char *classes)
-{
- fail();
-}
-
-bool IsItemIn(Item *list, const char *item)
-{
- fail();
-}
-
int DEBUG;
-void DeleteItemList(Item *item)
-{
- fail();
-}
-
int MINUSF;
-bool IsStrIn(const char *str, const char **strs)
-{
- fail();
-}
-
char *MapAddress(char *addr)
{
fail();
@@ -260,7 +225,3 @@ void HashPubKey(RSA *key, unsigned char digest[EVP_MAX_MD_SIZE + 1], enum cfhash
fail();
}
-void *GetConstraintValue(char *lval, Promise *promise, char type)
-{
- fail();
-}

0 comments on commit 17ccbbb

Please sign in to comment.