Fault, Error, Failure 在软件工程中的区别

  • Fault: 实现错误的代码, 例如if (p = NULL)
  • Error: 程序执行时不符合预期的状态, 例如p被错误地赋值成NULL
  • Failure: 能直接观测到的错误, 例如程序触发了段错误

来源:https://nju-projectn.github.io/ics-pa-gitbook/ics2021/1.6.html (调试工具与原理 一节中)

posted @ 2022-08-03 09:26  yinhuachen  阅读(98)  评论(0编辑  收藏  举报