[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog tests/runtime/System/Runtime/...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog tests/runtime/System/Runtime/... |
Date: |
Tue, 16 Jan 2007 08:50:00 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 07/01/16 08:50:00
Modified files:
. : ChangeLog
tests/runtime/System/Runtime/CompilerServices:
TestCompilerServices.cs
Log message:
Change the test for running class constructors because the execution
order changed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2459&r2=1.2460
http://cvs.savannah.gnu.org/viewcvs/pnetlib/tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2459
retrieving revision 1.2460
diff -u -b -r1.2459 -r1.2460
--- ChangeLog 23 Nov 2006 11:05:34 -0000 1.2459
+++ ChangeLog 16 Jan 2007 08:49:59 -0000 1.2460
@@ -1,3 +1,9 @@
+2007-01-16 Klaus Treichel <address@hidden>
+
+ * tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs:
+ Change the test for running class constructors because the execution of
+ class initializers is triggered different now.
+
2006-11-23 Heiko Weiss <address@hidden>
* Xsharp/XsharpSupport.c: fixed hanging app in XNextEventWithTimeout.
Index: tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs
4 Jun 2003 05:19:27 -0000 1.1
+++ tests/runtime/System/Runtime/CompilerServices/TestCompilerServices.cs
16 Jan 2007 08:50:00 -0000 1.2
@@ -137,6 +137,21 @@
public static int value;
+ private static void RunClassConstructor(RuntimeTypeHandle type)
+ {
+ RuntimeHelpers.RunClassConstructor(type);
+ }
+
+ private static void CallConstructorTestDummy()
+ {
+ ConstructorTest.Dummy();
+ }
+
+ private static void CallConstructorTest2Dummy()
+ {
+ ConstructorTest2.Dummy();
+ }
+
// Test the "RunClassConstructor" method in "RuntimeHelpers".
public void TestHelpersRunClassConstructor()
{
@@ -144,19 +159,17 @@
AssertEquals("RCC (1)", 0, value);
// Run the class constructor and re-test the
value.
- RuntimeHelpers.RunClassConstructor
- (typeof(ConstructorTest).TypeHandle);
+
RunClassConstructor(typeof(ConstructorTest).TypeHandle);
AssertEquals("RCC (2)", 1, value);
// Calling a static method shouldn't cause the
value
// to increase again.
- ConstructorTest.Dummy();
+ CallConstructorTestDummy();
AssertEquals("RCC (3)", 1, value);
// Re-calling the class constructor shouldn't
cause
// the value to increase again.
- RuntimeHelpers.RunClassConstructor
- (typeof(ConstructorTest).TypeHandle);
+
RunClassConstructor(typeof(ConstructorTest).TypeHandle);
AssertEquals("RCC (4)", 1, value);
// Reset the value.
@@ -164,13 +177,12 @@
// Call the static method in "ConstructorTest2".
// This should implicitly call the class
constructor.
- ConstructorTest2.Dummy();
+ CallConstructorTest2Dummy();
AssertEquals("RCC (5)", 1, value);
// Call the class constructor manually, which
should
// not result in an increase of the value.
- RuntimeHelpers.RunClassConstructor
- (typeof(ConstructorTest2).TypeHandle);
+
RunClassConstructor(typeof(ConstructorTest2).TypeHandle);
AssertEquals("RCC (6)", 1, value);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog tests/runtime/System/Runtime/...,
Klaus Treichel <=