BugFix: Segmentation fault of Tree32

Add:    "make test" to .travis.yaml
Add:    compile GatewayTester to .travis.yaml

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2017-05-07 21:27:25 +09:00
parent e21b679a03
commit 0adfac47da
5 changed files with 12 additions and 10 deletions

View File

@@ -135,8 +135,6 @@ install:
cp -pf $(CLIENTS) ../../
exectest:
cp -pf $(CONFIG) $(OUTDIR)
cd $(OUTDIR)
./$(TESTPROGNAME) -f ./gateway.conf
./$(OUTDIR)/$(TESTPROGNAME) -f ./gateway.conf

View File

@@ -257,10 +257,10 @@ private:
/*=====================================
Class Tree23
====================================*/
#define TREE23_INSERT_ACTIVE (1)
#define TREE23_DELETE_ACTIVE (2)
#define TREE23_BI_NODE (3)
#define TREE23_TRI_NODE (4)
#define TREE23_INSERT_ACTIVE (-2)
#define TREE23_DELETE_ACTIVE (-1)
#define TREE23_BI_NODE (2)
#define TREE23_TRI_NODE (3)
template <typename K, typename V>
class Tree23Elm{

View File

@@ -29,7 +29,7 @@
using namespace std;
using namespace MQTTSNGW;
#define ARGV "./testPFW"
#define ARGV "./Build/testPFW"
#define CONFDIR "./"
#define CONF "gateway.conf"
@@ -121,5 +121,5 @@ void TestProcess::run(void)
_evQue.post(ev);
}
MultiTaskProcess::run();
//MultiTaskProcess::run();
}

View File

@@ -76,7 +76,6 @@ void TestTree23::test(void)
assert(rc == false);
//printf("key=%d find=%d\n", i, rc);
Integer* val = this->getVal(r1[i]);
//printf("key=%d val=%d\n", i, val->_val);
assert(val == 0);
}
for ( int i = 50; i < N; i++)