blob: c1b7c746f1a47d3ced0b266b43c2917c517b3553 [file] [log] [blame]
#include <stdplus/gtest/tmp.hpp>
#include <filesystem>
#include <gtest/gtest.h>
namespace stdplus
{
namespace gtest
{
class TestWithTmpTest : public TestWithTmp
{};
TEST_F(TestWithTmpTest, One)
{
EXPECT_TRUE(std::filesystem::create_directory(
std::filesystem::path(CaseTmpDir()) / "a"));
EXPECT_TRUE(std::filesystem::create_directory(
std::filesystem::path(SuiteTmpDir()) / "a"));
}
TEST_F(TestWithTmpTest, Two)
{
EXPECT_TRUE(std::filesystem::create_directory(
std::filesystem::path(CaseTmpDir()) / "a"));
EXPECT_FALSE(std::filesystem::create_directory(
std::filesystem::path(SuiteTmpDir()) / "a"));
}
class TestWithTmpTest2 : public TestWithTmp
{};
TEST_F(TestWithTmpTest2, One)
{
EXPECT_TRUE(std::filesystem::create_directory(
std::filesystem::path(SuiteTmpDir()) / "a"));
EXPECT_TRUE(std::filesystem::create_directory(
std::filesystem::path(CaseTmpDir()) / "a"));
}
} // namespace gtest
} // namespace stdplus