Skip to content

Commit

Permalink
ファイル削除に使う関数を削除例外が出るものに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed May 17, 2020
1 parent a40a52c commit d774d8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unittests/test-cdlgprofilemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "dlg/CDlgProfileMgr.h"

#include <cstdlib>
#include <filesystem>
#include <fstream>

/*!
Expand Down Expand Up @@ -67,15 +68,15 @@ class CDlgProfileMgrIniTest : public ::testing::Test {
*/
virtual void SetUp() {
// プロファイル設定を削除する
std::remove( szProfileMgrIniName );
std::filesystem::remove( szProfileMgrIniName );
}

/*!
* テストが実行された直後に毎回呼ばれる関数
*/
virtual void TearDown() {
// プロファイル設定を削除する
std::remove( szProfileMgrIniName );
std::filesystem::remove( szProfileMgrIniName );
}
};

Expand Down

0 comments on commit d774d8f

Please sign in to comment.