Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 76b6dd766bb5e7d7a808396dbafac7a7e8fd120b |
|---|---|
| Date: | 2012-03-31 12:53:52 |
| User: | mistachkin |
| Comment: | Mono portability fixes for the test suite. |
Tags And Properties
- branch=trunk inherited from [7f9e634bf5]
- sym-trunk inherited from [7f9e634bf5]
Changes
Changes to Externals/Eagle/lib/Test1.0/prologue.eagle
71 } 71 } 72 72 73 # 73 # 74 # NOTE: Set the local root directory of the source checkout (i.e. of 74 # NOTE: Set the local root directory of the source checkout (i.e. of 75 # Eagle or whatever project the Eagle binaries are being used by). 75 # Eagle or whatever project the Eagle binaries are being used by). 76 # 76 # 77 if {![info exists root_path]} then { 77 if {![info exists root_path]} then { 78 set pattern {^local-root:\s+(.*)\s+$} | 78 set pattern {^local-root:\s+?(.*?)\s+?$} 79 79 80 if {[catch {set exec [exec -- fossil info]}] || \ 80 if {[catch {set exec [exec -- fossil info]}] || \ 81 [regexp -line -- $pattern $exec dummy directory] == 0} then { 81 [regexp -line -- $pattern $exec dummy directory] == 0} then { 82 # 82 # 83 # NOTE: We could not query local root directory of the source checkout 83 # NOTE: We could not query local root directory of the source checkout 84 # from Fossil; therefore, attempt to make an educated guess. This 84 # from Fossil; therefore, attempt to make an educated guess. This 85 # value will probably be wrong for any project(s) other than Eagle. 85 # value will probably be wrong for any project(s) other than Eagle.
Changes to Tests/basic.eagle
904 ISO8601 Utc 904 ISO8601 Utc 905 } result] : [set result ""]}] $result 905 } result] : [set result ""]}] $result 906 } -cleanup { 906 } -cleanup { 907 unset -nocomplain result results errors code id 907 unset -nocomplain result results errors code id 908 } -constraints \ 908 } -constraints \ 909 {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -match \ 909 {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -match \ 910 regexp -result {^Ok System#CodeDom#Compiler#CompilerResults#\d+ \{\} 0 \{Date\ 910 regexp -result {^Ok System#CodeDom#Compiler#CompilerResults#\d+ \{\} 0 \{Date\ 911 Source=test\.db\} 0 \{Date Source=test\.db;DateTimeFormat=ISO8601\} 0 \{Date\ | 911 Source=test\.db\} 0 \{Date Source=test\.db;DateTimeFormat=(?:Default|ISO8601)\}\ 912 Source=test\.db;DateTimeKind=Unspecified\} 0 \{Date\ | 912 0 \{Date Source=test\.db;DateTimeKind=Unspecified\} 0 \{Date\ 913 Source=test\.db;DateTimeFormat=ISO8601;DateTimeKind=Utc\}$}} | 913 Source=test\.db;DateTimeFormat=(?:Default|ISO8601);DateTimeKind=Utc\}$}} 914 914 915 ############################################################################### 915 ############################################################################### 916 916 917 runTest {test data-1.16 {SQLiteConnectionStringBuilder properties} -body { 917 runTest {test data-1.16 {SQLiteConnectionStringBuilder properties} -body { 918 set id [object invoke Interpreter.GetActive NextId] 918 set id [object invoke Interpreter.GetActive NextId] 919 919 920 unset -nocomplain results errors 920 unset -nocomplain results errors ................................................................................................................................................................................ 1012 \{False, Enlist=False\} 0 \{True, FailIfMissing=True\} 0 \{False, Legacy\ 1012 \{False, Enlist=False\} 0 \{True, FailIfMissing=True\} 0 \{False, Legacy\ 1013 Format=False\} 0 \{True, Read Only=True\} 0 \{secret, Password=secret\} 0\ 1013 Format=False\} 0 \{True, Read Only=True\} 0 \{secret, Password=secret\} 0\ 1014 \{4096, Page Size=4096\} 0 \{1024, Max Page Count=1024\} 0 \{8192, Cache\ 1014 \{4096, Page Size=4096\} 0 \{1024, Max Page Count=1024\} 0 \{8192, Cache\ 1015 Size=8192\} 0 \{UnixEpoch, DateTimeFormat=UnixEpoch\} 0 \{Utc,\ 1015 Size=8192\} 0 \{UnixEpoch, DateTimeFormat=UnixEpoch\} 0 \{Utc,\ 1016 DateTimeKind=Utc\} 0 \{sqlite_schema, BaseSchemaName=sqlite_schema\} 0\ 1016 DateTimeKind=Utc\} 0 \{sqlite_schema, BaseSchemaName=sqlite_schema\} 0\ 1017 \{Memory, Journal Mode=Memory\} 0 \{Serializable, Default\ 1017 \{Memory, Journal Mode=Memory\} 0 \{Serializable, Default\ 1018 IsolationLevel=Serializable\} 0 \{False, Foreign Keys=False\} 0\ 1018 IsolationLevel=Serializable\} 0 \{False, Foreign Keys=False\} 0\ 1019 \{LogCallbackException, Flags=LogCallbackException\}$}} | 1019 \{LogCallbackException, Flags=(?:Default|LogCallbackException)\}$}} 1020 1020 1021 ############################################################################### 1021 ############################################################################### 1022 1022 1023 runTest {test data-1.17 {SQLiteConvert ToDateTime (Julian Day)} -body { 1023 runTest {test data-1.17 {SQLiteConvert ToDateTime (Julian Day)} -body { 1024 set dateTime [object invoke System.Data.SQLite.SQLiteConvert ToDateTime \ 1024 set dateTime [object invoke System.Data.SQLite.SQLiteConvert ToDateTime \ 1025 2455928.0 Utc] 1025 2455928.0 Utc] 1026 1026
Changes to test/TestCases.cs
1196 using (DbDataAdapter adp = _fact.CreateDataAdapter()) 1196 using (DbDataAdapter adp = _fact.CreateDataAdapter()) 1197 using (DbCommandBuilder builder = _fact.CreateCommandBuilder()) 1197 using (DbCommandBuilder builder = _fact.CreateCommandBuilder()) 1198 { 1198 { 1199 adp.SelectCommand = cmd; 1199 adp.SelectCommand = cmd; 1200 builder.DataAdapter = adp; 1200 builder.DataAdapter = adp; 1201 builder.ConflictOption = ConflictOption.OverwriteChanges; 1201 builder.ConflictOption = ConflictOption.OverwriteChanges; 1202 1202 > 1203 // > 1204 // NOTE: *MONO* This test fails on all recent versions of Mono (e.g. > 1205 // 2.10, 2.11) for reasons that are presently unknown. > 1206 // 1203 using (DbCommand updatecmd = builder.GetUpdateCommand()) 1207 using (DbCommand updatecmd = builder.GetUpdateCommand()) 1204 { 1208 { 1205 if (updatecmd.Parameters.Count != 4) 1209 if (updatecmd.Parameters.Count != 4) 1206 throw new Exception("Wrong number of parameters in update comman 1210 throw new Exception("Wrong number of parameters in update comman 1207 } 1211 } 1208 } 1212 } 1209 } 1213 }