test )LABEL[n]
[pspp] / src / language / tests / format-guesser-test.c
index c95ea35f00cf5db60b5c8917a9d35a04f838b03a..0900ebd817d75991ee61fe168fa5d4bb19e7e778 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2008, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include <stdio.h>
 
-#include <data/format.h>
-#include <data/format-guesser.h>
-#include <language/command.h>
-#include <language/lexer/lexer.h>
-#include <libpspp/message.h>
+#include "data/format.h"
+#include "data/format-guesser.h"
+#include "language/command.h"
+#include "language/lexer/lexer.h"
+#include "libpspp/message.h"
 
 /* Executes the DEBUG FORMAT GUESSER command. */
 int
@@ -52,6 +52,7 @@ cmd_debug_format_guesser (struct lexer *lexer, struct dataset *ds UNUSED)
     }
   msg_enable ();
   putc ('\n', stderr);
+  fmt_guesser_destroy (g);
 
-  return lex_end_of_command (lexer);
+  return CMD_SUCCESS;
 }