summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/sdl.m44
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_wavefile.py5
2 files changed, 5 insertions, 4 deletions
diff --git a/config/sdl.m4 b/config/sdl.m4
index d4246620e..20ad7df35 100644
--- a/config/sdl.m4
+++ b/config/sdl.m4
@@ -34,8 +34,8 @@ AC_ARG_ENABLE(sdltest, AC_HELP_STRING([--disable-sdltest],
fi
AC_REQUIRE([AC_CANONICAL_TARGET])
- PATH="$prefix/bin:$prefix/usr/bin:$PATH"
- AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
+ TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+ AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$TMP_PATH])
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
index c6d376a81..3ba5dfbce 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
@@ -57,8 +57,9 @@ class qa_wavefile(gr_unittest.TestCase):
in_f = file(infile, 'rb')
out_f = file(outfile, 'rb')
- in_data = in_f.read(getsize(infile))
- out_data = out_f.read(getsize(outfile))
+ in_data = in_f.read()
+ out_data = out_f.read()
+ out_f.close()
os.remove(outfile)
self.assertEqual(in_data, out_data)