嵌入式软件中断系统的测试研究
2015-12-21代晓倩尤志坚
代晓倩 尤志坚
摘要:由中断引发的软件故障往往具有隐蔽性和随机性,因此嵌入式软件中断系统测试是嵌入式软件测试中的难点。该文对中断测试技术进行了研究,从静态和动态测试两方面总结了测试需关注的重点,通过使用文中的测试方法,发现中断系统中一些常见的问题。
关键词:中断;软件测试;静态测试;动态测试
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2015)28-0068-02
Research of Testing Technology for Embedded Software Interrupt System
DAI Xiao-qian, YOU Zhi-jian
(Shanghai Aerospace Electronic Technology Institute, Shanghai 201109, China)
Abstract:Because of the concealment and randomness of the problem caused by software interrupt, the thesting technology of embedded software interrupt system is difficult. This thesis study the testing technology of embedded system, it also summarizes the key point of testing technology from static and dynamic test. Common problems can be found through the test method used in this thesis.
Key words: interrupt; software test; static test; dynamic test
中断机制是嵌入式系统的重要组成部分,中断是指在程序执行过程中,遇到急需处理的某个事件时,暂时中止正在执行的程序,转而执行相应的事件处理程序,待事件处理完毕后,再返回断点处继续执行,或调度其他程序执行的过程。嵌入式软件的中断具有多种类型,从执行时间上划分包括偶发的和周期性的;从触发类型上划分包括内部中断和外部中断;从中断级别上划分包括高优先级中断和低优先级中断等。随着嵌入式系统在各领域的广泛应用,相应的软件也越来越复杂,随之带来中断系统的设计和使用的也日益复杂。与一般程序不同,中断处理程序的执行具有随机性和不确定性,因此相关软件中断部分的测试也比一般程序要复杂。中断问题比一般软件问题要更具有隐蔽性、偶发性。某些问题测试人员很难复进行复现,这给软件测试工作带来了很大的难度。本文从静态和动态两方面总结了嵌入式软件中断系统的测试技术,从而对提高相关软件的质量有所帮助。……
