diff options
author | michaelld | 2008-02-28 20:11:05 +0000 |
---|---|---|
committer | michaelld | 2008-02-28 20:11:05 +0000 |
commit | 9905fe273103025303358c57b79e8c197d95da3b (patch) | |
tree | e8e3b4a12832073a6faea0c3a5d15b84bd6bb804 /gnuradio-core/src | |
parent | f2fa77f61b3d569e475cda12ca683fe419e7bfdd (diff) | |
download | gnuradio-9905fe273103025303358c57b79e8c197d95da3b.tar.gz gnuradio-9905fe273103025303358c57b79e8c197d95da3b.tar.bz2 gnuradio-9905fe273103025303358c57b79e8c197d95da3b.zip |
Fix for QA code for wavefile.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7866 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py index 7ce4ae92f..f6359d82f 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py @@ -25,6 +25,8 @@ from gnuradio import gr, gr_unittest import os from os.path import getsize +g_in_file = os.path.join (os.getenv ("srcdir"), "test_16bit_1chunk.wav") + class qa_wavefile(gr_unittest.TestCase): def setUp (self): @@ -34,12 +36,12 @@ class qa_wavefile(gr_unittest.TestCase): self.tb = None def test_001_checkwavread (self): - wf = gr.wavfile_source("./test_16bit_1chunk.wav") + wf = gr.wavfile_source(g_in_file) self.assertEqual(wf.sample_rate(), 8000) # disabled. Fails on PPC def xtest_002_checkwavcopy (self): - infile = "test_16bit_1chunk.wav" + infile = g_in_file outfile = "test_out.wav" wf_in = gr.wavfile_source(infile) |