System.Data.SQLite
Check-in [be844022a1]
Not logged in

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

Overview
Comment:Add comments to document why certain tests are skipped on .NET Core.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | netStandard20
Files: files | file ages | folders
SHA1:be844022a13a2d7f3607b50442ced85d1ce6a6eb
User & Date: mistachkin 2018-04-08 05:08:29
Context
2018-04-08
12:00
More test suite refinements. check-in: cdca7aec87 user: mistachkin tags: netStandard20
05:08
Add comments to document why certain tests are skipped on .NET Core. check-in: be844022a1 user: mistachkin tags: netStandard20
2018-04-07
19:10
Use 'SQLITE_NET_CONFIGURATION_SUFFIX' in the .NET Core build scripts for POSIX. check-in: 6abb302e8b user: mistachkin tags: netStandard20
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Tests/memory.eagle.

42
43
44
45
46
47
48




49
50
51
52
53
54
55
#
checkForSQLiteDirectories $test_channel
getSQLiteHandleCounts $test_channel
reportSQLiteResources $test_channel

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





runTest {test memory-1.1 {SQLiteDataReader memory testing} -setup {
  setupMemoryCounters counter
  reportMemoryCounters $test_channel counter initial

  setupDb [set fileName $test_repository_file] \
      "" "" "" "" "Read Only=True" false false
} -body {







>
>
>
>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
checkForSQLiteDirectories $test_channel
getSQLiteHandleCounts $test_channel
reportSQLiteResources $test_channel

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

#
# NOTE: This test is disabled for .NET Core due to its lack of support for
#       performance counters.
#
runTest {test memory-1.1 {SQLiteDataReader memory testing} -setup {
  setupMemoryCounters counter
  reportMemoryCounters $test_channel counter initial

  setupDb [set fileName $test_repository_file] \
      "" "" "" "" "Read Only=True" false false
} -body {

Changes to Tests/stress.eagle.

279
280
281
282
283
284
285





286
287
288
289
290
291
292
      }
    }
  }

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

  proc useMem { ptr size } {





    if {[isWindows] && ![isMono] && ![isDotNetCore]} then {
      #
      # HACK: The type signature of the ZeroMemory method changed as of the
      #       .NET Framework 4.5.  The second argument went from being of
      #       type UInt to type UIntPtr.
      #
      if {[haveConstraint dotNet40] && \







>
>
>
>
>







279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
      }
    }
  }

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

  proc useMem { ptr size } {
    #
    # NOTE: This procedure does nothing on non-Windows operating systems.  It
    #       also does nothing when running on Mono or .NET Core, due to their
    #       lack of the (internal, undocumented) ZeroMemory method.
    #
    if {[isWindows] && ![isMono] && ![isDotNetCore]} then {
      #
      # HACK: The type signature of the ZeroMemory method changed as of the
      #       .NET Framework 4.5.  The second argument went from being of
      #       type UInt to type UIntPtr.
      #
      if {[haveConstraint dotNet40] && \

Changes to Tests/thread.eagle.

61
62
63
64
65
66
67





68
69
70
71
72
73
74
#
if {![info exists count(4)]} then {
  set count(4) 1000
}

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






runTest {test thread-1.1 {Thread.Abort() impact on native resources} -setup {
  setupDb [set fileName thread-1.1.db]

  tputs $test_channel [appendArgs \
      "---- using " $count(1) " test threads (with one master thread)\n"]

  tputs $test_channel [appendArgs \







>
>
>
>
>







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
if {![info exists count(4)]} then {
  set count(4) 1000
}

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

#
# NOTE: This test is disabled for .NET Core due to its lack of support for
#       the Thread.Abort method (i.e. throws PlatformNotSupportedException
#       when called).
#
runTest {test thread-1.1 {Thread.Abort() impact on native resources} -setup {
  setupDb [set fileName thread-1.1.db]

  tputs $test_channel [appendArgs \
      "---- using " $count(1) " test threads (with one master thread)\n"]

  tputs $test_channel [appendArgs \