summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authorTom Rondeau2010-12-23 18:31:28 -0500
committerTom Rondeau2010-12-23 18:31:28 -0500
commit153de8c41caa9c478bec2f10b8a1167952809eed (patch)
tree6c5955b33c284dc0b49fc40dbac6ed8c0b827202 /gnuradio-core/src/lib
parent65c10c943df0999926b0c96ef48e367e02a668da (diff)
downloadgnuradio-153de8c41caa9c478bec2f10b8a1167952809eed.tar.gz
gnuradio-153de8c41caa9c478bec2f10b8a1167952809eed.tar.bz2
gnuradio-153de8c41caa9c478bec2f10b8a1167952809eed.zip
Modifying the unittest output. XML files are no longer written outside of the build tree.
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_unittests.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_unittests.h b/gnuradio-core/src/lib/runtime/gr_unittests.h
index 680e59ca4..70aa6f294 100644
--- a/gnuradio-core/src/lib/runtime/gr_unittests.h
+++ b/gnuradio-core/src/lib/runtime/gr_unittests.h
@@ -45,14 +45,13 @@
*/
static void
-ensure_unittest_path (const char *grpath, const char *path)
+ensure_unittest_path (const char *path)
{
struct stat statbuf;
if (stat (path, &statbuf) == 0 && S_ISDIR (statbuf.st_mode))
return;
// blindly try to make it // FIXME make this robust. C++ SUCKS!
- gr_mkdir (grpath, 0750);
gr_mkdir (path, 0750);
}
@@ -60,11 +59,9 @@ static void
get_unittest_path (const char *filename, char *fullpath, size_t pathsize)
{
char path[200];
- char grpath[200];
- snprintf (grpath, sizeof(grpath), "%s/.gnuradio", getenv ("HOME"));
- snprintf (path, sizeof(path), "%s/unittests", grpath);
+ snprintf (path, sizeof(path), "./.unittests");
snprintf (fullpath, pathsize, "%s/%s", path, filename);
- ensure_unittest_path(grpath, path);
+ ensure_unittest_path(path);
}