mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 23:46:51 +01:00
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:
@@ -14,6 +14,11 @@ script:
|
|||||||
- cd MQTTSNGateway
|
- cd MQTTSNGateway
|
||||||
- make CXX="g++-4.8" SENSORNET="xbee"
|
- make CXX="g++-4.8" SENSORNET="xbee"
|
||||||
- make CXX="g++-4.8" SENSORNET="udp"
|
- make CXX="g++-4.8" SENSORNET="udp"
|
||||||
|
- make test
|
||||||
|
|
||||||
|
- cd GatewayTester
|
||||||
|
- make CXX="g++-4.8"
|
||||||
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
emails:
|
emails:
|
||||||
|
|||||||
@@ -135,8 +135,6 @@ install:
|
|||||||
cp -pf $(CLIENTS) ../../
|
cp -pf $(CLIENTS) ../../
|
||||||
|
|
||||||
exectest:
|
exectest:
|
||||||
cp -pf $(CONFIG) $(OUTDIR)
|
./$(OUTDIR)/$(TESTPROGNAME) -f ./gateway.conf
|
||||||
cd $(OUTDIR)
|
|
||||||
./$(TESTPROGNAME) -f ./gateway.conf
|
|
||||||
|
|
||||||
|
|
||||||
@@ -257,10 +257,10 @@ private:
|
|||||||
/*=====================================
|
/*=====================================
|
||||||
Class Tree23
|
Class Tree23
|
||||||
====================================*/
|
====================================*/
|
||||||
#define TREE23_INSERT_ACTIVE (1)
|
#define TREE23_INSERT_ACTIVE (-2)
|
||||||
#define TREE23_DELETE_ACTIVE (2)
|
#define TREE23_DELETE_ACTIVE (-1)
|
||||||
#define TREE23_BI_NODE (3)
|
#define TREE23_BI_NODE (2)
|
||||||
#define TREE23_TRI_NODE (4)
|
#define TREE23_TRI_NODE (3)
|
||||||
|
|
||||||
template <typename K, typename V>
|
template <typename K, typename V>
|
||||||
class Tree23Elm{
|
class Tree23Elm{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace MQTTSNGW;
|
using namespace MQTTSNGW;
|
||||||
|
|
||||||
#define ARGV "./testPFW"
|
#define ARGV "./Build/testPFW"
|
||||||
#define CONFDIR "./"
|
#define CONFDIR "./"
|
||||||
#define CONF "gateway.conf"
|
#define CONF "gateway.conf"
|
||||||
|
|
||||||
@@ -121,5 +121,5 @@ void TestProcess::run(void)
|
|||||||
_evQue.post(ev);
|
_evQue.post(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
MultiTaskProcess::run();
|
//MultiTaskProcess::run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ void TestTree23::test(void)
|
|||||||
assert(rc == false);
|
assert(rc == false);
|
||||||
//printf("key=%d find=%d\n", i, rc);
|
//printf("key=%d find=%d\n", i, rc);
|
||||||
Integer* val = this->getVal(r1[i]);
|
Integer* val = this->getVal(r1[i]);
|
||||||
//printf("key=%d val=%d\n", i, val->_val);
|
|
||||||
assert(val == 0);
|
assert(val == 0);
|
||||||
}
|
}
|
||||||
for ( int i = 50; i < N; i++)
|
for ( int i = 50; i < N; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user