Title :
Modelling Dynamic Memory Management in Constraint-Based Testing
Author :
Charreteur, Florence ; Botella, Bernard ; Gotlieb, Arnaud
Author_Institution :
Univ. de Rennes, Rennes
Abstract :
Constraint-Based Testing (CBT) is the process of generating test cases against a testing objective by using constraint solving techniques. When programs contain dynamic memory allocation and loops, constraint reasoning becomes challenging as new variables and new constraints are created during the test data generation process. In this paper, we address this problem by proposing a new constraint model of C programs based on operators that model dynamic memory management. These operators apply deduction rules on abstract states of the memory allowing so to enhance the constraint reasoning process that permits to generate test data for these programs. We illustrate our approach on structural testing of a complex program that contains dynamic memory allocation/deallocation, structures and loops. An implementation is in progress and first experimental results obtained on this program show the highly deductive potential of the approach.
Keywords :
abstract data types; constraint handling; program testing; storage management; C program; abstract state; constraint model; constraint reasoning process; constraint solving; constraint-based testing; deduction rules; dynamic memory allocation; dynamic memory management modelling; test case generation; test data generation process; Application software; Automatic testing; Conference management; Context modeling; Data mining; Genetic mutations; Hardware; Memory management; Software testing; Time factors;
Conference_Titel :
Testing: Academic and Industrial Conference Practice and Research Techniques - MUTATION, 2007. TAICPART-MUTATION 2007
Conference_Location :
Windsor
Print_ISBN :
978-0-7695-2984-4
DOI :
10.1109/TAIC.PART.2007.22