System.Data.SQLite
Check-in [07b0709845]
Not logged in

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

Overview
Comment:Cleanup leaked opaque object handle in test 'basic-1.2'.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 07b070984529507edb9cecc9062c0c60fee75095
User & Date: mistachkin 2011-07-07 09:40:42
Context
2011-07-07
10:05
Isolate the hard-coding of the VS designer version number. Normalize all the project web site URLs to end with a slash. check-in: 20d41af53e user: mistachkin tags: trunk
09:40
Cleanup leaked opaque object handle in test 'basic-1.2'. check-in: 07b0709845 user: mistachkin tags: trunk
08:47
Make the necessary adjustments to the unit test suite and to the 'test' / 'testlinq' projects to allow all the tests contained within those projects to be run programmatically via the unit test suite. check-in: 178b6d6379 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Tests/basic.eagle.

70
71
72
73
74
75
76

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

runTest {test basic-1.2 {unit tests from the 'testlinq' project} -setup {
  #
  # NOTE: We need to make 100% sure that the console output encoding is the
  #       same as when the 'testlinq.out' file was created.
  #
  set savedEncoding [object invoke Console OutputEncoding]


  object invoke Console OutputEncoding \
      [object invoke System.Text.Encoding GetEncoding Windows-1252]
} -body {
  set code [catch {
    testExec $testLinqExeFile [list -eventflags Wait -directory \
    [file dirname $northwindEfDbFile] -stdout output -success 0] -autoRun
  } error]

  tlog "---- BEGIN STDOUT OUTPUT\n"
  tlog $output
  tlog "\n---- END STDOUT OUTPUT\n"

  list $code [string equal $output [readFile $testLinqOutFile]] \
      [expr {$code == 0 ? "" : $error}]
} -cleanup {
  object invoke Console OutputEncoding $savedEncoding

  unset -nocomplain code output error savedEncoding
} -constraints {eagle System.Data.SQLite file_testlinq.exe file_northwindEF.db\
file_testlinq.out} -result {0 True {}}}

###############################################################################

runTest {test basic-1.3 {SELECT scalar/reader, CREATE, INSERT} -setup {
  setupDb [set fileName basic-1.1.db]







>

|
<













|

|







70
71
72
73
74
75
76
77
78
79

80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

runTest {test basic-1.2 {unit tests from the 'testlinq' project} -setup {
  #
  # NOTE: We need to make 100% sure that the console output encoding is the
  #       same as when the 'testlinq.out' file was created.
  #
  set savedEncoding [object invoke Console OutputEncoding]
  set encoding [object invoke System.Text.Encoding GetEncoding Windows-1252]

  object invoke Console OutputEncoding $encoding

} -body {
  set code [catch {
    testExec $testLinqExeFile [list -eventflags Wait -directory \
    [file dirname $northwindEfDbFile] -stdout output -success 0] -autoRun
  } error]

  tlog "---- BEGIN STDOUT OUTPUT\n"
  tlog $output
  tlog "\n---- END STDOUT OUTPUT\n"

  list $code [string equal $output [readFile $testLinqOutFile]] \
      [expr {$code == 0 ? "" : $error}]
} -cleanup {
  catch {object invoke Console OutputEncoding $savedEncoding}

  unset -nocomplain code output error savedEncoding encoding
} -constraints {eagle System.Data.SQLite file_testlinq.exe file_northwindEF.db\
file_testlinq.out} -result {0 True {}}}

###############################################################################

runTest {test basic-1.3 {SELECT scalar/reader, CREATE, INSERT} -setup {
  setupDb [set fileName basic-1.1.db]