From 1faafbc31face0d1f0c65f6cf6bad863b9c721af Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 13 Jul 2015 11:12:54 +0100 Subject: [PATCH] Add assertions for new Skyrim BSA test files. --- src/tests/fixtures.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/fixtures.h b/src/tests/fixtures.h index bf2150d5..9236be94 100644 --- a/src/tests/fixtures.h +++ b/src/tests/fixtures.h @@ -242,6 +242,9 @@ protected: inline virtual void SetUp() { GameTest::SetUp(); + ASSERT_TRUE(boost::filesystem::exists(dataPath / "Blank.bsa")); + ASSERT_TRUE(boost::filesystem::exists(dataPath / "Blank.bsl")); + // Can't change Skyrim's main master file, so mock it. ASSERT_FALSE(boost::filesystem::exists(dataPath / "Skyrim.esm")); ASSERT_NO_THROW(boost::filesystem::copy_file(dataPath / "Blank.esm", dataPath / "Skyrim.esm")); @@ -293,4 +296,4 @@ protected: } }; -#endif \ No newline at end of file +#endif