diff options
Diffstat (limited to 'src/tests/recipemltest.cpp')
| -rw-r--r-- | src/tests/recipemltest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/recipemltest.cpp b/src/tests/recipemltest.cpp index cef3adb..d800345 100644 --- a/src/tests/recipemltest.cpp +++ b/src/tests/recipemltest.cpp @@ -144,16 +144,16 @@ main(int argc, char *argv[]) printf("Creating RecipeMLExporter.\n"); RecipeMLExporter exporter("not needed",".mmf"); - check( exporter, recipeList ); - printf("Successfully exported recipes to test.txt.\n"); + const char *outfile = "recipemltest_output.txt"; + check( outfile , exporter, recipeList ); + printf("Successfully exported recipes to %s.\n", outfile); printf("Creating RecipeMLImporter to test exported recipes.\n"); RecipeMLImporter importer2; - printf("Parsing test.txt.\n"); - TQStringList files2; files2 << "test.txt"; + printf("Parsing %s.\n", outfile); + TQStringList files2; files2 << TQString(outfile); importer2.parseFiles(files2); - TQFile::remove("test.txt"); check( importer2, recipe ); printf("Recipe export successful.\n"); |
