TUT要開啓RTTI

  聽說TUT是一個很輕量級的C++單元測試框架.我喜歡簡單,輕量等字眼,所以就去下了個試試(http://tut-framework.sourceforge.net/) .
  用它自帶的例子測試,發現改了ensure的第二個參數爲false時,彈出Debug Error對話框:
(---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Error!

Program: e:/pgpwork/test/test/Debug/test.exe



This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.



(Press Retry to debug the application)
---------------------------
終止(A)   重試(R)   忽略(I)  
---------------------------
)

  不是我預期的輸出是哪個測試用例出錯了,出錯在哪行的信息...
   調了下代碼,發現是沒用開啓RTTI,在編譯時加上/GR就OK了       
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章