commit 602f712b9fdc9af029c93b30e0737b6f615d87a7
parent 5a898881cd08155b14a6554e966a9a4d6938707b
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date: Fri, 22 Feb 2013 19:40:54 -0800
Fix make distcheck
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
@@ -20,7 +20,8 @@ EXTRA_DIST = \
lic/libtiff \
lic/regex \
lic/wxWindows \
- lic/zlib
+ lic/zlib \
+ tests/samples
DISTCLEANFILES = \
intltool-extract \
diff --git a/tests/Makefile.am b/tests/Makefile.am
@@ -15,6 +15,7 @@ test_SOURCES = \
AM_CPPFLAGS = \
-include config.h \
-I$(top_srcdir)/src \
+ -DSAMPLES_DIR=\"$(srcdir)/samples\" \
-pthread \
$(WX_CPPFLAGS)
diff --git a/tests/test-audio-info.cc b/tests/test-audio-info.cc
@@ -35,7 +35,7 @@ struct FileInfo
static void test_file(const std::string& name, const FileInfo& info)
{
Audio audio;
- auto file = audio.open("samples/" + name);
+ auto file = audio.open(SAMPLES_DIR "/" + name);
test("error", AudioError::OK, file->get_error());
test("codec", info.codec_name, file->get_codec_name());
test("bit rate", info.bit_rate, file->get_bit_rate());