aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-27 21:26:25 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-27 21:26:25 +0000
commit4630508afabd9f92bfbafdb66e3888362266da2c (patch)
treeb8ba5f02b21091999ccc9312081283ba1d07d42d /test
parentadded 8.10 and 13.7 (diff)
downloadmutator-4630508afabd9f92bfbafdb66e3888362266da2c.tar.gz
mutator-4630508afabd9f92bfbafdb66e3888362266da2c.zip
added tdd tests for 8.10 and 13.7
Diffstat (limited to 'test')
-rw-r--r--test/main.c9
-rw-r--r--test/testFuncs1.c34
-rw-r--r--test/testFuncs1.h6
3 files changed, 35 insertions, 14 deletions
diff --git a/test/main.c b/test/main.c
index 1984e6e..d3de2ba 100644
--- a/test/main.c
+++ b/test/main.c
@@ -1,7 +1,7 @@
/*intentionally left blank.*/
#include "testFuncs1.h"
-#include <string.h>
+//#include <string.h>
main()
{
@@ -47,13 +47,6 @@ main()
testFuncQMark (int1, int2);
testFuncCallBool ();
- im_a_mlaign_func ();
- im_a_benign_func ();
- im_a_dummy ();
- im_a_minion_01 ();
- im_a_minion_02 ();
- im_a_minion_03 ();
-
test3();
test4 (aa, bb, cc);
test5();
diff --git a/test/testFuncs1.c b/test/testFuncs1.c
index cc97eaf..f721096 100644
--- a/test/testFuncs1.c
+++ b/test/testFuncs1.c
@@ -415,14 +415,14 @@ void testFuncCallBool (void)
/*the function that is *supposedly* carrying a bug*/
-void im_a_mlaign_func (void)
+static void im_a_mlaign_func (void)
{
/* KATSU!*/
}
/*the function that is *supposedly* the good guy here*/
-void im_a_benign_func (void)
+static void im_a_benign_func (void)
{
/* see the light ring?!*/
}
@@ -450,7 +450,7 @@ void im_a_minion_02 (void)
/* minion function number #03*/
-void im_a_minion_03 (void)
+static void im_a_minion_03 (void)
{
/* minion1*/
}
@@ -1134,5 +1134,33 @@ void test32(void)
}
}
+static void test33(void)
+{
+ short int a;
+ long int b;
+
+ b = (int)a;
+}
+
+void test34(void)
+{
+ int i, a;
+
+ i >= 3;
+
+ for (;; i++)
+ {
+ a++;
+ }
+
+ ; /*yadayada*/
+ ;/*:P*/
+
+ ; int b;
+
+ test33();
+}
+
+
/**********************************************************************************************************************/
/*the last line's been intentionally left blank.*/
diff --git a/test/testFuncs1.h b/test/testFuncs1.h
index 0915b12..0f8b2ef 100644
--- a/test/testFuncs1.h
+++ b/test/testFuncs1.h
@@ -87,12 +87,12 @@ void testFuncMultiInstantiation (int level);
void testFuncQMark (int int1, int int2);
void testFuncCallBool (void);
-void im_a_mlaign_func (void);
-void im_a_benign_func (void);
+static void im_a_mlaign_func (void);
+static void im_a_benign_func (void);
void im_a_dummy (void);
void im_a_minion_01 (void);
void im_a_minion_02 (void);
-void im_a_minion_03 (void);
+static void im_a_minion_03 (void);
#if (TRUE == INLINE)
#if (MPC == COMPILER)