diff tests/automated/test-harness.el @ 4366:7b628daa39d4

Move debugging code to usage example. * automated/test-harness.el (test-harness-test-compiled): Improve docstring. * automated/weak-tests.el (test-harness-test-compiled): Remove debugging code.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 29 Dec 2007 20:22:04 -0800
parents 94509abd0ef0
children bceb3e285ae7
line wrap: on
line diff
--- a/tests/automated/test-harness.el	Thu Dec 27 13:22:26 2007 +0100
+++ b/tests/automated/test-harness.el	Sat Dec 29 20:22:04 2007 -0800
@@ -71,7 +71,17 @@
 (defvar unexpected-test-file-failures)
 
 (defvar test-harness-test-compiled nil
-  "Non-nil means the test code was compiled before execution.")
+  "Non-nil means the test code was compiled before execution.
+
+You probably should not make tests depend on compilation.
+However, it can be useful to conditionally change messages based on whether
+the code was compiled or not.  For example, the case that motivated the
+implementation of this variable:
+
+\(when test-harness-test-compiled
+  ;; this ha-a-ack depends on the failing compiled test coming last
+  \(setq test-harness-failure-tag
+	\"KNOWN BUG - fix reverted; after 2003-10-31 notify stephen\n\"))")
 
 (defvar test-harness-verbose
   (and (not noninteractive) (> (device-baud-rate) search-slow-speed))