diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-31 03:14:09 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-31 03:14:09 (GMT) |
commit | 8ba6a7828835308811aa0861650cd04888c9f212 (patch) | |
tree | 48c94840fa50de065d69e091d953a619589129d1 /tests/guicgalpngtest.cc | |
parent | 997a0afac3f9b3a7aa2c4a8d351c3697bc91f7aa (diff) |
add correct test result images, and minor cleanup
Diffstat (limited to 'tests/guicgalpngtest.cc')
-rw-r--r-- | tests/guicgalpngtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/guicgalpngtest.cc b/tests/guicgalpngtest.cc index dd4441c..65e7a72 100644 --- a/tests/guicgalpngtest.cc +++ b/tests/guicgalpngtest.cc @@ -10,7 +10,7 @@ int main( int argc, char * argv[] ) { fprintf(stderr,"%s: wrapper for OpenSCAD at %s\n", argv[0], QUOTE( BINPATH ) ); - if (argc<3 || argc>3) { + if ( argc != 3 ) { fprintf(stderr,"%s: bad number of arguments: %i\n", argv[0], argc); return 1; } @@ -23,6 +23,6 @@ int main( int argc, char * argv[] ) newargs[3] = pngfile; newargs[4] = const_cast<char *>("--render"); newargs[5] = NULL; - return execv( QUOTE( BINPATH ), newargs ); + return execv( newargs[0], newargs ); } |