diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ee6d597..284f36a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,13 @@ int main(int argc, char *argv[]) { gsl_set_error_handler (&gemma_gsl_error_handler); gemmaguile::global_start_guile(); - gemmaguile::start_test(); + // No start_test() here: it loaded src/guile/examples.scm relative to the + // working directory and printed 'elem 0 = 1.000000 ...' to stdout on every + // run, so gemma only started from the source root (elsewhere the load threw + // and the process still exited 0, with no output), and a caller parsing + // stdout -- gemma-wrapper's JSON, for one -- got four stray lines. The + // Guile binding is still initialised for the version banner below, and the + // example is still runnable from a test, not from main(). if (argc <= 1) { cGemma.PrintHeader(); |
