summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-03 00:39:43 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-03 00:39:43 (GMT)
commitb390d54471201731db1158fa21aa54fcef1f7582 (patch)
tree87bd600de213e8aa3e3b0dfcb0b9c4da1a02d1da /tests/test_pretty_print.cc
parent8c9c9adfe0f0fa5c1ade561a61f3f8add3600c22 (diff)
fix bug in test_pretty_print.cc / Cmakefile
The build needs to be after Python binary has been found because the Python binary path is passed to the .cc compile through a -D flag.
Diffstat (limited to 'tests/test_pretty_print.cc')
-rw-r--r--tests/test_pretty_print.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pretty_print.cc b/tests/test_pretty_print.cc
index b400e21..9959189 100644
--- a/tests/test_pretty_print.cc
+++ b/tests/test_pretty_print.cc
@@ -1,11 +1,12 @@
/* Workaround for CTEST_CUSTOM_POST_TEST not allowing arguments
compile with
- -DPYBIN=/usr/bin/python
+ -DPYBIN=/usr/bin/python
-DPYSRC=/home/janedoe/openscad/tests/test_pretty_print.py
-DBUILDDIR=--builddir=/home/janedoe/openscad/tests/bin"
*/
#include <unistd.h>
+//#include <stdio.h>
#define PREQUOTE(x) #x
#define QUOTE(x) PREQUOTE(x)
@@ -16,6 +17,7 @@ int main( int argc, char * argv[] )
newargs[1] = const_cast<char *>(QUOTE( PYSRC ));
newargs[2] = const_cast<char *>(QUOTE( BUILDDIR ));
newargs[3] = NULL;
+ //printf(":%s:%s:%s\n", newargs[0], newargs[1], newargs[2]);
return execv( newargs[0], newargs );
}
contact: Jan Huwald // Impressum