System.Data.SQLite

Check-in [efce1eacab]
Login

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

Overview
Comment:Fix a couple test typos.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | netStandard20
Files: files | file ages | folders
SHA1: efce1eacab38b79e74729dc2e4fca12ae6656a8d
User & Date: mistachkin 2018-04-06 10:05:23.924
Context
2018-04-06
10:34
Adjust test constraints to work around .NET Core issues. check-in: c11f98fd5b user: mistachkin tags: netStandard20
10:05
Fix a couple test typos. check-in: efce1eacab user: mistachkin tags: netStandard20
10:00
Fix a couple portability with the stress test. check-in: da40f86257 user: mistachkin tags: netStandard20
Changes
Unified Diff Ignore Whitespace Patch
Changes to Tests/stress.eagle.
1674
1675
1676
1677
1678
1679
1680
1681
1682

1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
    sql execute $db "CREATE TABLE IF NOT EXISTS t3(x);"

    sql execute $srcDb "CREATE INDEX IF NOT EXISTS i1 ON t1(y);"
    sql execute $db "CREATE INDEX IF NOT EXISTS i1 ON t1(y);"

    foreach index(1) [lsort -integer $workloadNames(enabled)] {
      set workloadCallbacks($index(1)) [list \
          apply $workload($index(1)) $fileName(1) $fileName(2) t1 $count(1) \
          $count(3) $count(4) $count(5) $count(6) $count(7) $count(8)]


      set thread($index(1)) [createThread $workloadCallbacks($index(1)) \
          1048576]

      $thread($index(1)) Name [appendArgs \
          [file rootname [file tail $fileName(2)]] " #" $index(1)]

      if {[info exists priority($index(1))]} then {
        $thread($index(1)) Priority $priority($index(1))
      }







|
|
>


|







1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
    sql execute $db "CREATE TABLE IF NOT EXISTS t3(x);"

    sql execute $srcDb "CREATE INDEX IF NOT EXISTS i1 ON t1(y);"
    sql execute $db "CREATE INDEX IF NOT EXISTS i1 ON t1(y);"

    foreach index(1) [lsort -integer $workloadNames(enabled)] {
      set workloadCallbacks($index(1)) [list \
          apply $workload($index(1)) $fileName(1) $fileName(2) t1 \
          $count(1) $count(3) $count(4) $count(5) $count(6) $count(7) \
          $count(8)]

      set thread($index(1)) [createThread $workloadCallbacks($index(1)) \
          false 1048576]

      $thread($index(1)) Name [appendArgs \
          [file rootname [file tail $fileName(2)]] " #" $index(1)]

      if {[info exists priority($index(1))]} then {
        $thread($index(1)) Priority $priority($index(1))
      }
Changes to Tests/tkt-84718e79fa.eagle.
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

  setupDb [set fileName tkt-84718e79fa-1.1.db]
} -body {
  sql execute $db "CREATE TABLE t1(x INTEGER PRIMARY KEY ASC);"
  sql execute $db "INSERT INTO t1 (x) VALUES(1);"

  for {set i 0} {$i < $c} {incr i} {
    set t($i) [createThread threadStart 1048576]
  }

  set results [list]

  for {set i 0} {$i < $c} {incr i} {
    startThread $t($i)
  }







|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

  setupDb [set fileName tkt-84718e79fa-1.1.db]
} -body {
  sql execute $db "CREATE TABLE t1(x INTEGER PRIMARY KEY ASC);"
  sql execute $db "INSERT INTO t1 (x) VALUES(1);"

  for {set i 0} {$i < $c} {incr i} {
    set t($i) [createThread threadStart false 1048576]
  }

  set results [list]

  for {set i 0} {$i < $c} {incr i} {
    startThread $t($i)
  }