Message Passing Systems (MPS) is today a widely used architecture for distributed embedded systems, where components communicate by sending and receiving messages. Integration testing a system using MPS with a many-to-many relationship can be demanding as both the time and the order in which messages are delivered depend on the execution environment. The non-deterministicness can lead to message race faults, where the order of messages can result in false truths. If a test cannot continue execution until the response has been received, it can potentially lead to a message deadlock. Google Test is a popular framework for testing code written in C/C++; it features a rich set of assertions and fatal and non-fatal failures. This paper presents guidelines on how to test a non-deterministic message order in an MPS system using additions to the Google Test framework. From studies a set of solutions were brought forward. Each solution was evaluated with the use of a minimalistic MPS system that we constructed for the task, and the guidelines are based upon the results of these.
Identifer | oai:union.ndltd.org:UPSALLA1/oai:DiVA.org:liu-148349 |
Date | January 2018 |
Creators | Jansson, Oskar, Nilsson, Niklas |
Publisher | Linköpings universitet, Institutionen för datavetenskap, Linköpings universitet, Institutionen för datavetenskap |
Source Sets | DiVA Archive at Upsalla University |
Language | English |
Detected Language | English |
Type | Student thesis, info:eu-repo/semantics/bachelorThesis, text |
Format | application/pdf |
Rights | info:eu-repo/semantics/openAccess |
Page generated in 0.0017 seconds