perform renaming
This commit is contained in:
@ -20,22 +20,22 @@ void testmq::testMq() {
|
||||
testSenderMq->setDefaultDestination(testReceiverMqId);
|
||||
|
||||
auto result = testSenderMq->sendMessage(testReceiverMqId, &testMessage);
|
||||
if (result != result::OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
MessageQueueMessage recvMessage;
|
||||
result = testReceiverMq->receiveMessage(&recvMessage);
|
||||
if (result != result::OK or recvMessage.getData()[0] != 42) {
|
||||
if (result != returnvalue::OK or recvMessage.getData()[0] != 42) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
|
||||
result = testSenderMq->sendMessage(testReceiverMqId, &testMessage);
|
||||
if (result != result::OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
MessageQueueId_t senderId = 0;
|
||||
result = testReceiverMq->receiveMessage(&recvMessage, &senderId);
|
||||
if (result != result::OK or recvMessage.getData()[0] != 42) {
|
||||
if (result != returnvalue::OK or recvMessage.getData()[0] != 42) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
if (senderId != testSenderMqId) {
|
||||
|
@ -16,7 +16,7 @@ void testmutex::testMutex() {
|
||||
std::string id = "[testMutex]";
|
||||
MutexIF* mutex = MutexFactory::instance()->createMutex();
|
||||
auto result = mutex->lockMutex(MutexIF::TimeoutType::POLLING);
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
// timed_mutex from the C++ library specifies undefined behaviour if
|
||||
@ -35,7 +35,7 @@ void testmutex::testMutex() {
|
||||
}
|
||||
|
||||
result = mutex->unlockMutex();
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ void testsemaph::testCountingSemaph() {
|
||||
// release 3 times in a row
|
||||
for (int i = 0; i < 3; i++) {
|
||||
auto result = countingSemaph->release();
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
}
|
||||
@ -75,7 +75,7 @@ void testsemaph::testBinSemaphoreImplementation(SemaphoreIF* binSemaph, std::str
|
||||
unitt::put_error(id);
|
||||
}
|
||||
result = binSemaph->acquire(SemaphoreIF::BLOCKING);
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ void testsemaph::testBinSemaphoreImplementation(SemaphoreIF* binSemaph, std::str
|
||||
}
|
||||
|
||||
result = binSemaph->release();
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ void testsemaph::testCountingSemaphImplementation(SemaphoreIF* countingSemaph, s
|
||||
// acquire 3 times in a row
|
||||
for (int i = 0; i < 3; i++) {
|
||||
result = countingSemaph->acquire(SemaphoreIF::BLOCKING);
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
}
|
||||
@ -144,7 +144,7 @@ void testsemaph::testCountingSemaphImplementation(SemaphoreIF* countingSemaph, s
|
||||
// release 3 times in a row
|
||||
for (int i = 0; i < 3; i++) {
|
||||
result = countingSemaph->release();
|
||||
if (result != HasReturnvaluesIF::RETURN_OK) {
|
||||
if (result != returnvalue::OK) {
|
||||
unitt::put_error(id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user