System.Data.SQLite
Check-in [76b6dd766b]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Mono portability fixes for the test suite.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 76b6dd766bb5e7d7a808396dbafac7a7e8fd120b
User & Date: mistachkin 2012-03-31 12:53:52
Context
2012-03-31
13:15
Adjust the local-root regular expression pattern for the test suite so that it works on .NET and Mono. check-in: ecc49a4c8a user: mistachkin tags: trunk
12:53
Mono portability fixes for the test suite. check-in: 76b6dd766b user: mistachkin tags: trunk
2012-03-30
22:25
Update Eagle in externals to the beta 22 release. check-in: ec7620aec4 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Externals/Eagle/lib/Test1.0/prologue.eagle.

    71     71     }
    72     72   
    73     73     #
    74     74     # NOTE: Set the local root directory of the source checkout (i.e. of
    75     75     #       Eagle or whatever project the Eagle binaries are being used by).
    76     76     #
    77     77     if {![info exists root_path]} then {
    78         -    set pattern {^local-root:\s+(.*)\s+$}
           78  +    set pattern {^local-root:\s+?(.*?)\s+?$}
    79     79   
    80     80       if {[catch {set exec [exec -- fossil info]}] || \
    81     81           [regexp -line -- $pattern $exec dummy directory] == 0} then {
    82     82         #
    83     83         # NOTE: We could not query local root directory of the source checkout
    84     84         #       from Fossil; therefore, attempt to make an educated guess.  This
    85     85         #       value will probably be wrong for any project(s) other than Eagle.

Changes to Tests/basic.eagle.

   904    904               ISO8601 Utc
   905    905         } result] : [set result ""]}] $result
   906    906   } -cleanup {
   907    907     unset -nocomplain result results errors code id
   908    908   } -constraints \
   909    909   {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -match \
   910    910   regexp -result {^Ok System#CodeDom#Compiler#CompilerResults#\d+ \{\} 0 \{Date\
   911         -Source=test\.db\} 0 \{Date Source=test\.db;DateTimeFormat=ISO8601\} 0 \{Date\
   912         -Source=test\.db;DateTimeKind=Unspecified\} 0 \{Date\
   913         -Source=test\.db;DateTimeFormat=ISO8601;DateTimeKind=Utc\}$}}
          911  +Source=test\.db\} 0 \{Date Source=test\.db;DateTimeFormat=(?:Default|ISO8601)\}\
          912  +0 \{Date Source=test\.db;DateTimeKind=Unspecified\} 0 \{Date\
          913  +Source=test\.db;DateTimeFormat=(?:Default|ISO8601);DateTimeKind=Utc\}$}}
   914    914   
   915    915   ###############################################################################
   916    916   
   917    917   runTest {test data-1.16 {SQLiteConnectionStringBuilder properties} -body {
   918    918     set id [object invoke Interpreter.GetActive NextId]
   919    919   
   920    920     unset -nocomplain results errors
................................................................................
  1012   1012   \{False, Enlist=False\} 0 \{True, FailIfMissing=True\} 0 \{False, Legacy\
  1013   1013   Format=False\} 0 \{True, Read Only=True\} 0 \{secret, Password=secret\} 0\
  1014   1014   \{4096, Page Size=4096\} 0 \{1024, Max Page Count=1024\} 0 \{8192, Cache\
  1015   1015   Size=8192\} 0 \{UnixEpoch, DateTimeFormat=UnixEpoch\} 0 \{Utc,\
  1016   1016   DateTimeKind=Utc\} 0 \{sqlite_schema, BaseSchemaName=sqlite_schema\} 0\
  1017   1017   \{Memory, Journal Mode=Memory\} 0 \{Serializable, Default\
  1018   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   1023   runTest {test data-1.17 {SQLiteConvert ToDateTime (Julian Day)} -body {
  1024   1024     set dateTime [object invoke System.Data.SQLite.SQLiteConvert ToDateTime \
  1025   1025         2455928.0 Utc]
  1026   1026   

Changes to test/TestCases.cs.

  1196   1196             using (DbDataAdapter adp = _fact.CreateDataAdapter())
  1197   1197             using (DbCommandBuilder builder = _fact.CreateCommandBuilder())
  1198   1198             {
  1199   1199               adp.SelectCommand = cmd;
  1200   1200               builder.DataAdapter = adp;
  1201   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   1207               using (DbCommand updatecmd = builder.GetUpdateCommand())
  1204   1208               {
  1205   1209                 if (updatecmd.Parameters.Count != 4)
  1206   1210                   throw new Exception("Wrong number of parameters in update command!");
  1207   1211               }
  1208   1212             }
  1209   1213           }