Modelling dynamic memory management in constraint-based testing

被引:8
|
作者
Charreteur, Florence [1 ]
Botella, Bernard [2 ]
Gotlieb, Arnaud [3 ]
机构
[1] Univ Rennes 1, F-35042 Rennes, France
[2] CEA LIST, F-91191 Gif Sur Yvette, France
[3] INRIA, F-35042 Rennes, France
关键词
Software testing; Constraint-based testing; Automatic test data generation; Dynamic structures; GENERATION;
D O I
10.1016/j.jss.2009.06.029
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 should be 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 powerful deduction rules on abstract states of the memory enhancing the constraint reasoning process. This allows to automatically generate test data respecting complex coverage objectives. We illustrate our approach on a well-known difficult example program that contains dynamic memory allocation/deallocation, structures and loops. We describe our implementation and provide preliminary experimental results on this example that show the highly deductive potential of the approach. (C) 2009 Elsevier Inc. All rights reserved.
引用
收藏
页码:1755 / 1766
页数:12
相关论文
共 50 条
  • [1] Modelling dynamic memory management in constraint-based testing
    Charreteur, Florence
    Botella, Bernard
    Gotlieb, Arnaud
    [J]. TAIC PART 2007 - TESTING: ACADEMIC AND INDUSTRIAL CONFERENCE - PRACTICE AND RESEARCH TECHNIQUES, PROCEEDINGS: CO-LOCATED WITH MUTATION 2007, 2007, : 111 - +
  • [2] Improving constraint-based testing with dynamic linear relaxations
    Denmat, Tristan
    Gotlieb, Arnaud
    Ducasse, Mireille
    [J]. ISSRE 2007: 18TH IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 2007, : 181 - +
  • [3] Constraint-based object modelling
    Zalik, B
    Guid, N
    Clapworthy, G
    [J]. JOURNAL OF ENGINEERING DESIGN, 1996, 7 (02) : 209 - 232
  • [4] Constraint-based Dynamic Conversations
    Cacciagrano, Diletta
    Corradini, Flavio
    Culmone, Rosario
    Vito, Leonardo
    [J]. ICNS: 2009 FIFTH INTERNATIONAL CONFERENCE ON NETWORKING AND SERVICES, 2009, : 7 - 12
  • [5] Constraint-Based Testing for Buffer Overflows
    Al Sardy, Loui
    Saglietti, Francesca
    Tang, Tong
    Sonnenberg, Heiko
    [J]. COMPUTER SAFETY, RELIABILITY, AND SECURITY, SAFECOMP 2018, 2018, 11094 : 99 - 111
  • [6] Constraint-based identification of a dynamic model
    Joukhadar, A
    Garat, F
    Laugier, C
    [J]. IROS '97 - PROCEEDINGS OF THE 1997 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOT AND SYSTEMS: INNOVATIVE ROBOTICS FOR REAL-WORLD APPLICATIONS, VOLS 1-3, 1996, : 337 - 342
  • [7] A constraint-based dynamic geometry system
    Freixas, Marc
    Joan-Arinyo, Robert
    Soto-Riera, Antoni
    [J]. COMPUTER-AIDED DESIGN, 2010, 42 (02) : 151 - 161
  • [8] A Constraint-Based Dynamic Geometry System
    Freixas, Marc
    Joan Arinyo, Robert
    Soto-Riera, Antoni
    [J]. SPM 2008: PROCEEDINGS OF THE ACM SOLID AND PHYSICAL MODELING SYMPOSIUM, 2008, : 37 - 46
  • [9] Constraint-Based Testing: An Emerging Trend in Software Testing
    Gotlieb, Arnaud
    [J]. ADVANCES IN COMPUTERS, VOL 99, 2015, 99 : 67 - 101
  • [10] A constraint-based language for modelling intelligent environments
    Gallardo M.-D.-M.
    Lavado L.
    Panizo L.
    Titolo L.
    [J]. Journal of Reliable Intelligent Environments, 2017, 3 (1) : 55 - 79