Title
Automatic Generation of Unit Tests for Correlated Variables in Parallel Programs.
Abstract
A notorious class of concurrency bugs are race condition related to correlated variables, which make up about 30 % of all non-deadlock concurrency bugs. A solution to prevent this problem is the automatic generation of parallel unit tests. This paper presents an approach to generate parallel unit tests for variable correlations in multithreaded code. We introduce a hybrid approach for identifying correlated variables. Furthermore, we estimate the number of potentially violated correlations for methods executed in parallel. In this way, we are capable of creating unit tests that are suited for race detectors considering correlated variables. We were able to identify more than 85 % of all race conditions on correlated variables in eight applications after applying our parallel unit tests. At the same time, we reduced the number of unnecessary generated unit tests. In comparison to a test generator unaware of variable correlations, redundant unit tests are reduced by up to 50 %, while maintaining the same precision and accuracy in terms of the number of detected races.
Year
DOI
Venue
2016
10.1007/s10766-015-0363-8
International Journal of Parallel Programming
Keywords
Field
DocType
Unit tests, Automatic testing, Parallel programming, Debugging, Race detection, Program analysis, Correlated variables
Race condition,Concurrency,Computer science,Unit testing,Test generator,Parallel computing,Automatic testing,Algorithm,Theoretical computer science,Program analysis,Accuracy and precision,Debugging
Journal
Volume
Issue
ISSN
44
3
1573-7640
Citations 
PageRank 
References 
3
0.37
14
Authors
2
Name
Order
Citations
PageRank
Ali Jannesari114920.11
Felix Wolf25712.00