summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/tests/test_runtime.cc
diff options
context:
space:
mode:
authorTom Rondeau2010-10-02 17:16:04 -0400
committerTom Rondeau2010-10-02 17:16:04 -0400
commit2b8bd0d2fa7c76282a772b75cb99e7bd5f2be13f (patch)
tree6b50d3098332428f32a7a051e8abe8db1f446a9f /gnuradio-core/src/tests/test_runtime.cc
parent036a42c08eadbd0a2c462ca61d9d883996be8042 (diff)
downloadgnuradio-2b8bd0d2fa7c76282a772b75cb99e7bd5f2be13f.tar.gz
gnuradio-2b8bd0d2fa7c76282a772b75cb99e7bd5f2be13f.tar.bz2
gnuradio-2b8bd0d2fa7c76282a772b75cb99e7bd5f2be13f.zip
Moving XML output files from cppunit tests to $HOME/.gnuradio/unittests.
This also adds a new utility gr_unittests.h, which sets up the path for output files.
Diffstat (limited to 'gnuradio-core/src/tests/test_runtime.cc')
-rw-r--r--gnuradio-core/src/tests/test_runtime.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnuradio-core/src/tests/test_runtime.cc b/gnuradio-core/src/tests/test_runtime.cc
index 1efd9a0c0..c7983a23e 100644
--- a/gnuradio-core/src/tests/test_runtime.cc
+++ b/gnuradio-core/src/tests/test_runtime.cc
@@ -22,14 +22,18 @@
#include <cppunit/TextTestRunner.h>
#include <cppunit/XmlOutputter.h>
+
+#include <gr_unittests.h>
#include <qa_runtime.h>
int
main (int argc, char **argv)
{
+ char path[200];
+ get_unittest_path ("gnuradio_core_runtime.xml", path, 200);
- CppUnit::TextTestRunner runner;
- std::ofstream xmlfile("cppunit_test_runtime.xml");
+ CppUnit::TextTestRunner runner;
+ std::ofstream xmlfile(path);
CppUnit::XmlOutputter *xmlout = new CppUnit::XmlOutputter(&runner.result(), xmlfile);
runner.addTest (qa_runtime::suite ());