From 9083f01fd23fe7ea3470136ec2cd7a0d2a600b43 Mon Sep 17 00:00:00 2001
From: Araq <rumpf_a@web.de>
Date: Sun, 29 Jan 2012 01:53:09 +0100
Subject: fixed #96 as good as technically possible (debug frames are allocated
 on the C stack)

---
 tests/compile/tsortdev.nim | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'tests/compile')

diff --git a/tests/compile/tsortdev.nim b/tests/compile/tsortdev.nim
index 0af0fe0f4..baf238d9e 100755
--- a/tests/compile/tsortdev.nim
+++ b/tests/compile/tsortdev.nim
@@ -28,8 +28,8 @@ when isMainModule:
     var data: seq[string] = @[]
     
     var L = random(59)
-    for i in 0..1: 
-      echo "loop: ", i
+    for i in 0..10_000: 
+      #echo "loop: ", i
       #newSeq(data, L)
       setLen(data, L)
       for j in 0 .. L-1:
@@ -39,13 +39,13 @@ when isMainModule:
       var copy = data
       for j in 0 .. L-1:
         assert getRefcount(copy[j]) == 1
-        assert(cast[pointer](copy[j]) != cast[pointer](data[i]))
+        assert(cast[pointer](copy[j]) != cast[pointer](data[j]))
       
       bubblesort(data, system.cmp, order)
       if not sorted(data, order):
         quit "bubblesort failed"
 
-      sort(copy, cmp, order)
+      #sort(copy, cmp, order)
       for j in 0 .. L-1:
         let rc = getRefcount(data[j])
         if rc != 1:
-- 
cgit 1.4.1-2-gfad0