Tests.cpp 323 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "gtest/gtest.h"

class TestEnv : public ::testing::Environment
{
    public:
        virtual void SetUp()
        {
            // Always clean the DB in case a previous test crashed
            unlink("test.db");
        }
};

::testing::Environment* const env = ::testing::AddGlobalTestEnvironment(new TestEnv);