Revision: 4129 http://vexi.svn.sourceforge.net/vexi/?rev=4129&view=rev Author: clrg Date: 2011-05-12 20:47:32 +0000 (Thu, 12 May 2011)
Log Message: ----------- Fix. Don't assume so much; only strip assertion elements from the backtrace. Modified Paths: -------------- trunk/org.vexi-vexi.vunit/src_main/vexi/test/vunit.t Modified: trunk/org.vexi-vexi.vunit/src_main/vexi/test/vunit.t =================================================================== --- trunk/org.vexi-vexi.vunit/src_main/vexi/test/vunit.t 2011-05-12 00:41:37 UTC (rev 4128) +++ trunk/org.vexi-vexi.vunit/src_main/vexi/test/vunit.t 2011-05-12 20:47:32 UTC (rev 4129) @@ -4,7 +4,7 @@ <meta:doc> Author: Mike <usage> - See the wiki page http://vexi.sourceforge.net/VUnit + See the wiki page http://vexi.sourceforge.net/VUnit </usage> </meta:doc> @@ -328,11 +328,15 @@ fun.apply(null, arguments); } catch (e) { var localtrace = []; - // step through hte backtrace and remove any - // entries that are generated by vunit code - for (var i,trace in e.backtrace) - if (trace.indexOf("vexi.test.vunit")!=0 and trace.indexOf("org.vexi.vunit")!=0) - localtrace.push(trace); + // step through the backtrace and remove any entries + // that are generated by vunits assert functions + var keep = false; + for (var i,trace in e.backtrace) { + if (keep or trace.indexOf("vexi.test.vunit")==0) + continue; + keep = true; + localtrace.push(trace); + } // keep the full backtrace just in case // TODO document this e.fulltrace = e.backtrace; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn