PSPP only returns a failure exit status if an error message is issued, but
DEBUG XFORM FAIL doesn't issue an error message. This means that, if PSPP
has no other errors, then it's difficult to tell that the transformation
really did what it should have. This commit fixes the potential problem.
-#include <data/case.h>
-#include <data/procedure.h>
-#include <data/transformations.h>
-#include <language/command.h>
-#include <language/lexer/lexer.h>
+#include "data/case.h"
+#include "data/procedure.h"
+#include "data/transformations.h"
+#include "language/command.h"
+#include "language/lexer/lexer.h"
+#include "libpspp/message.h"
static int trns_fail (void *x, struct ccase **c, casenumber n);
static int trns_fail (void *x, struct ccase **c, casenumber n);
\f
/* A transformation which is guaranteed to fail. */
\f
/* A transformation which is guaranteed to fail. */
trns_fail (void *x UNUSED, struct ccase **c UNUSED,
casenumber n UNUSED)
{
trns_fail (void *x UNUSED, struct ccase **c UNUSED,
casenumber n UNUSED)
{
+ msg (SE, "DEBUG XFORM FAIL transformation executed");
int
cmd_debug_xform_fail (struct lexer *lexer, struct dataset *ds)
{
int
cmd_debug_xform_fail (struct lexer *lexer, struct dataset *ds)
{
+rank.sps:14: error: RANK: DEBUG XFORM FAIL transformation executed
+
rank.sps:14: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
])
AT_CLEANUP
rank.sps:14: error: Stopping syntax file processing here to avoid a cascade of dependent command failures.
])
AT_CLEANUP