http://d.puremagic.com/issues/show_bug.cgi?id=4328



--- Comment #2 from Rainer Schuetze <r.sagita...@gmx.de> 2010-08-27 08:39:32 
PDT ---
Here's a workaround: similar to the assert handling, generate the unittest_fail
function whenever there is a template in the module:

Index: template.c
===================================================================
--- template.c    (revision 632)
+++ template.c    (working copy)
@@ -429,6 +429,13 @@
         sc->module->toModuleAssert();
     }

+    if (/*global.params.useUnitTests &&*/ sc->module)
+    {
+        // Generate this function as it may be used
+        // when template is instantiated in other modules
+        sc->module->toModuleUnittest();
+    }
+
     /* Remember Scope for later instantiations, but make
      * a copy since attributes can change.
      */

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to