Skip to content

Commit

Permalink
MSVCリリース版のテストが失敗する対策
Browse files Browse the repository at this point in the history
失敗する原因が不明なので当面は実行しないように対策する。
  • Loading branch information
berryzplus committed Apr 30, 2019
1 parent f925648 commit c0d02c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unittests/test-mydevmode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ TEST(MYDEVMODETest, operatorNotEqual)
EXPECT_EQ(myDevMode, value);
}

/* アクセス不可のメモリ領域にアクセスしても、例外が発生しない事象があるので、
* 当面MSVCのリリース版では以下のテストを実行しない。
*/
#if defined(_DEBUG) || defined(__MINGW64__)
/*!
* @brief 等価比較演算子が一般保護違反を犯さないことを保証する非機能要件テスト
*
Expand Down Expand Up @@ -311,3 +315,4 @@ TEST(MYDEVMODETest, StrategyForSegmentationFault)
// 仮想メモリ範囲を解放する。
::VirtualFree(memBlock1, 0, MEM_RELEASE);
}
#endif /* if defined(_DEBUG) || defined(__MINGW64__) */

0 comments on commit c0d02c5

Please sign in to comment.