Made `make distcheck' pass.
We added 2 macros A2_TEST_DIR and A2_TEST_OUT_DIR to pass tests in `make distcheck`. A2_TEST_DIR refers to test directory. All output files by unit tests are now created under A2_TEST_OUT_DIR directory.
This commit is contained in:
@@ -36,10 +36,10 @@ void GZipDecoderTest::testDecode()
|
||||
GZipDecoder decoder;
|
||||
decoder.init();
|
||||
|
||||
std::string outfile("./aria2_GZipDecoderTest_testDecode");
|
||||
std::string outfile(A2_TEST_OUT_DIR"/aria2_GZipDecoderTest_testDecode");
|
||||
|
||||
char buf[4096];
|
||||
std::ifstream in("gzip_decode_test.gz", std::ios::binary);
|
||||
std::ifstream in(A2_TEST_DIR"/gzip_decode_test.gz", std::ios::binary);
|
||||
std::ofstream out(outfile.c_str(), std::ios::binary);
|
||||
while(in) {
|
||||
in.read(buf, sizeof(buf));
|
||||
|
||||
Reference in New Issue
Block a user