[svn:parrot] r41902 - branches/pcc_reapply/t/pmc

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Sat Oct 17 18:22:12 UTC 2009


Author: whiteknight
Date: Sat Oct 17 18:22:09 2009
New Revision: 41902
URL: https://trac.parrot.org/parrot/changeset/41902

Log:
[pcc] t/pmc/threads.t test was incorrect. It was calling set_string_native on the incoming args array (FPA) which is undefined. Threw unhandled exception which terminated the thread. Using a new local variable instead of the .param resolves this problem. One subtest fixed

Modified:
   branches/pcc_reapply/t/pmc/threads.t

Modified: branches/pcc_reapply/t/pmc/threads.t
==============================================================================
--- branches/pcc_reapply/t/pmc/threads.t	Sat Oct 17 15:09:24 2009	(r41901)
+++ branches/pcc_reapply/t/pmc/threads.t	Sat Oct 17 18:22:09 2009	(r41902)
@@ -168,8 +168,9 @@
     .param pmc passed
     inc $I5
     $S5 = " thread\n"
-    passed = 'hello from'
-    print passed
+    .local pmc salutation
+    salutation = box 'hello from'
+    print salutation
     # print I5 # not done because register initialization is not guaranteed
     print $S5
     $P0 = getinterp


More information about the parrot-commits mailing list