changeset 416:24ea9bf5f8b7

testing the new mini test runner features.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 28 Jul 2008 03:04:28 +0200
parents 76bf1eaaf4dc
children d3689b183f45
files tests/mini/debug1.d tests/mini/debug10.d tests/mini/debug11.d tests/mini/debug12.d tests/mini/debug2.d tests/mini/debug3.d tests/mini/debug4.d tests/mini/debug5.d tests/mini/debug6.d tests/mini/debug7.d tests/mini/debug8.d tests/mini/debug9.d tests/mini/norun_debug1.d tests/mini/norun_debug10.d tests/mini/norun_debug11.d tests/mini/norun_debug12.d tests/mini/norun_debug2.d tests/mini/norun_debug3.d tests/mini/norun_debug4.d tests/mini/norun_debug5.d tests/mini/norun_debug6.d tests/mini/norun_debug7.d tests/mini/norun_debug8.d tests/mini/norun_debug9.d
diffstat 24 files changed, 213 insertions(+), 213 deletions(-) [+]
line wrap: on
line diff
--- a/tests/mini/debug1.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-module tangotests.debug1;
-
-void main()
-{
-    int* ptr;
-
-    // all these should be inspectable
-    int i = 1;
-    int j = 2;
-    long k = 3;
-    float l = 4.521;
-    ubyte m = 5;
-
-    *ptr = 0;//cast(int)(i+j+k+l+m);
-}
-
-extern(C) int printf(char*, ...);
--- a/tests/mini/debug10.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-module tangotests.debug10;
-
-struct Vec2
-{
-    float x,y;
-}
-
-void main()
-{
-    Vec2 v2;
-    char[] str = "hello";
-    int i = void;
-    float f = 3.14;
-    func(v2, v2, str, i, f);
-}
-
-void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f)
-{
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug11.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-module tangotests.debug11;
-
-class C
-{
-}
-
-class D : C
-{
-    int i = 42;
-}
-
-class E : D
-{
-    float fp = 3.14f;
-}
-
-class F : E
-{
-    F f;
-}
-
-void main()
-{
-    auto c = new C;
-    auto d = new D;
-    auto e = new E;
-    auto f = new F;
-
-    auto ci = c.classinfo;
-
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug12.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-module tangotests.debug12;
-
-interface I
-{
-    int foo();
-}
-
-class C : I
-{
-    int i = 24;
-    int foo()
-    {
-        return i;
-    }
-}
-
-void main()
-{
-    scope c = new C;
-    I i = c;
-
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug2.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-module tangotests.debug2;
-
-import tango.stdc.stdlib : rand;
-
-void main()
-{
-    size_t iter;
-    while (iter < 25)
-    {
-        if (rand() % 20 == 10)
-            *cast(int*)null = 0;
-        ++iter;
-    }
-    assert(0);
-}
--- a/tests/mini/debug3.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-module tangotests.debug3;
-
-void main()
-{
-    int i = 42;
-    int* ip = &i;
-
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug4.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-module tangotests.debug4;
-
-void main()
-{
-    char c = 'c';
-    wchar wc = 'w';
-    dchar dc = 'd';
-
-    int* fail;
-    *fail = 32;
-}
--- a/tests/mini/debug5.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-module tangotests.debug5;
-
-void main()
-{
-    int i = 32;
-    real r = 3.1415;
-    real* p = &r;
-    func(i,r,p);
-}
-
-void func(int i, real r, real* p)
-{
-    int* fail;
-    *fail = 666;
-}
--- a/tests/mini/debug6.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-module tangotests.debug6;
-
-void main()
-{
-    char[] str = "hello world :)";
-
-    int* fail;
-    *fail = 32;
-}
--- a/tests/mini/debug7.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-module tangotests.debug7;
-
-int gi;
-
-void main()
-{
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug8.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-module tangotests.debug8;
-
-struct Str
-{
-    size_t len;
-    void* ptr;
-}
-
-struct Foo
-{
-    long l;
-    Bar bar;
-}
-
-struct Bar
-{
-    float x,y,z;
-    Foo* foo;
-}
-
-void main()
-{
-    Str str;
-    Foo foo;
-    foo.l = 42;
-    foo.bar.y = 3.1415;
-    foo.bar.foo = &foo;
-
-    int* fail;
-    *fail = 0;
-}
--- a/tests/mini/debug9.d	Mon Jul 28 03:03:44 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-module tangotests.debug9;
-
-struct Foo
-{
-    int a,b,c;
-
-    void func()
-    {
-        int* fail;
-        *fail = 0;
-    }
-}
-
-void main()
-{
-    Foo foo = Foo(1,10,73);
-    foo.func();
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug1.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,17 @@
+module mini.norun_debug1;
+
+void main()
+{
+    int* ptr;
+
+    // all these should be inspectable
+    int i = 1;
+    int j = 2;
+    long k = 3;
+    float l = 4.521;
+    ubyte m = 5;
+
+    *ptr = 0;//cast(int)(i+j+k+l+m);
+}
+
+extern(C) int printf(char*, ...);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug10.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,21 @@
+module mini.norun_debug10;
+
+struct Vec2
+{
+    float x,y;
+}
+
+void main()
+{
+    Vec2 v2;
+    char[] str = "hello";
+    int i = void;
+    float f = 3.14;
+    func(v2, v2, str, i, f);
+}
+
+void func(Vec2 v2, ref Vec2 rv2, char[] str, out int i, ref float f)
+{
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug11.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,33 @@
+module mini.norun_debug11;
+
+class C
+{
+}
+
+class D : C
+{
+    int i = 42;
+}
+
+class E : D
+{
+    float fp = 3.14f;
+}
+
+class F : E
+{
+    F f;
+}
+
+void main()
+{
+    auto c = new C;
+    auto d = new D;
+    auto e = new E;
+    auto f = new F;
+
+    auto ci = c.classinfo;
+
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug12.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,24 @@
+module mini.norun_debug12;
+
+interface I
+{
+    int foo();
+}
+
+class C : I
+{
+    int i = 24;
+    int foo()
+    {
+        return i;
+    }
+}
+
+void main()
+{
+    scope c = new C;
+    I i = c;
+
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug2.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,15 @@
+module mini.norun_debug2;
+
+import tango.stdc.stdlib : rand;
+
+void main()
+{
+    size_t iter;
+    while (iter < 25)
+    {
+        if (rand() % 20 == 10)
+            *cast(int*)null = 0;
+        ++iter;
+    }
+    assert(0);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug3.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,10 @@
+module mini.norun_debug3;
+
+void main()
+{
+    int i = 42;
+    int* ip = &i;
+
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug4.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,11 @@
+module mini.norun_debug4;
+
+void main()
+{
+    char c = 'c';
+    wchar wc = 'w';
+    dchar dc = 'd';
+
+    int* fail;
+    *fail = 32;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug5.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,15 @@
+module mini.norun_debug5;
+
+void main()
+{
+    int i = 32;
+    real r = 3.1415;
+    real* p = &r;
+    func(i,r,p);
+}
+
+void func(int i, real r, real* p)
+{
+    int* fail;
+    *fail = 666;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug6.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,9 @@
+module mini.norun_debug6;
+
+void main()
+{
+    char[] str = "hello world :)";
+
+    int* fail;
+    *fail = 32;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug7.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,9 @@
+module mini.norun_debug7;
+
+int gi;
+
+void main()
+{
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug8.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,31 @@
+module mini.norun_debug8;
+
+struct Str
+{
+    size_t len;
+    void* ptr;
+}
+
+struct Foo
+{
+    long l;
+    Bar bar;
+}
+
+struct Bar
+{
+    float x,y,z;
+    Foo* foo;
+}
+
+void main()
+{
+    Str str;
+    Foo foo;
+    foo.l = 42;
+    foo.bar.y = 3.1415;
+    foo.bar.foo = &foo;
+
+    int* fail;
+    *fail = 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/norun_debug9.d	Mon Jul 28 03:04:28 2008 +0200
@@ -0,0 +1,18 @@
+module mini.norun_debug9;
+
+struct Foo
+{
+    int a,b,c;
+
+    void func()
+    {
+        int* fail;
+        *fail = 0;
+    }
+}
+
+void main()
+{
+    Foo foo = Foo(1,10,73);
+    foo.func();
+}