mirror of https://github.com/aria2/aria2
Fixed output file path of tests.
parent
72369c20c6
commit
a743bef220
|
@ -29,9 +29,7 @@ void FallocFileAllocationIteratorTest::testAllocate()
|
||||||
// When fallocate is used, test fails if file system does not
|
// When fallocate is used, test fails if file system does not
|
||||||
// support it. So skip it.
|
// support it. So skip it.
|
||||||
#ifndef HAVE_FALLOCATE
|
#ifndef HAVE_FALLOCATE
|
||||||
std::string dir = "./";
|
std::string fn = A2_TEST_OUT_DIR"/aria2_FallocFileAllocationIteratorTest_testAllocate";
|
||||||
std::string fname = "aria2_FallocFileAllocationIteratorTest_testAllocate";
|
|
||||||
std::string fn = dir+"/"+fname;
|
|
||||||
std::ofstream of(fn.c_str(), std::ios::binary);
|
std::ofstream of(fn.c_str(), std::ios::binary);
|
||||||
of << "0123456789";
|
of << "0123456789";
|
||||||
of.close();
|
of.close();
|
||||||
|
|
|
@ -649,7 +649,7 @@ void UtilTest::testAlphaToNum()
|
||||||
|
|
||||||
void UtilTest::testMkdirs()
|
void UtilTest::testMkdirs()
|
||||||
{
|
{
|
||||||
std::string dir = "./aria2-UtilTest-testMkdirs";
|
std::string dir = A2_TEST_OUT_DIR"/aria2-UtilTest-testMkdirs";
|
||||||
File d(dir);
|
File d(dir);
|
||||||
if(d.exists()) {
|
if(d.exists()) {
|
||||||
CPPUNIT_ASSERT(d.remove());
|
CPPUNIT_ASSERT(d.remove());
|
||||||
|
|
Loading…
Reference in New Issue