Skip to content
This repository
Browse code

[tt389_fix] add exception handlers to one RPA test. When this test th…

…rows an unhndled exception the rest of the test file doesn't run at all. Now we see the one failure, and we also see that all other tests in the file pass

git-svn-id: https://svn.parrot.org/parrot/branches/tt389_fix@44987 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit 3815fa47853b83d3ca5fe6d48e4d9ea71e62af9b 1 parent 4b36fc0
Andrew Whitworth Whiteknight authored

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 3 t/pmc/resizablepmcarray.t
12 t/pmc/resizablepmcarray.t
@@ -332,6 +332,7 @@ done:
332 332
333 333
334 334 .sub sort_subclass
  335 + push_eh sort_subclass_handler
335 336 .local pmc subrpa, arr
336 337 subrpa = subclass ['ResizablePMCArray'], 'ssRPA'
337 338 arr = new subrpa
@@ -350,6 +351,11 @@ done:
350 351 aux = join '-', arr
351 352 concat s, aux
352 353 is(s, 'ssRPA:z-p-a', "sort works in a pir subclass, TT #218")
  354 + goto _done
  355 + sort_subclass_handler:
  356 + ok(0, "sorting a subclass is broken")
  357 + _done:
  358 + .return()
353 359 .end
354 360
355 361 .sub compare_reverse
@@ -979,12 +985,12 @@ end:
979 985 push array, 2
980 986 push array, 5
981 987 push array, 1
982   -
983   - .local string unsorted
  988 +
  989 + .local string unsorted
984 990 unsorted = join ' ', array
985 991 is(unsorted,"4 5 3 2 5 1", "unsorted array")
986 992
987   - ## sort using a non-tailcall function
  993 + ## sort using a non-tailcall function
988 994 .const 'Sub' cmp_normal = 'cmp_normal_tailcall'
989 995 $P1 = clone array
990 996 $P1.'sort'(cmp_normal)

0 comments on commit 3815fa4

Please sign in to comment.
Something went wrong with that request. Please try again.