File: LuceneGlobalFixture.cpp

package info (click to toggle)
lucene%2B%2B 3.0.7-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,192 kB
  • ctags: 29,538
  • sloc: cpp: 150,898; ansic: 26,941; python: 3,923; makefile: 253; sh: 241
file content (26 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
/////////////////////////////////////////////////////////////////////////////

#include "TestInc.h"
#include "LuceneGlobalFixture.h"
#include "TestUtils.h"
#include "TestPoint.h"
#include "FileUtils.h"

namespace Lucene {

void LuceneGlobalFixture::SetUp() {
    FileUtils::removeDirectory(getTempDir());
    FileUtils::createDirectory(getTempDir());
    TestPoint::enableTestPoints();
}

void LuceneGlobalFixture::TearDown() {
    FileUtils::removeDirectory(getTempDir());
    Lucene::CycleCheck::dumpRefs();
}

}