summaryrefslogtreecommitdiff
path: root/tests/test_cpp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cpp.cc')
-rw-r--r--tests/test_cpp.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index d6032b8..7e50e8a 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -192,6 +192,8 @@ int APIENTRY WinMain(
# endif
#endif
+ GC_init();
+
# if defined(MACOS) // MacOS
char* argv_[] = {"test_cpp", "10"}; // doesn't
argv = argv_; // have a
@@ -214,8 +216,8 @@ int APIENTRY WinMain(
x = 0;
# endif
if (argc != 2 || (0 >= (n = atoi( argv[ 1 ] )))) {
- GC_printf0( "usage: test_cpp number-of-iterations\n" );
- exit( 1 );}
+ GC_printf0( "usage: test_cpp number-of-iterations\nAssuming 10 iters\n" );
+ n = 10;}
for (iters = 1; iters <= n; iters++) {
GC_printf1( "Starting iteration %d\n", iters );