public void TestMaxLock() { testName = "TestMaxLock"; testHome = testFixtureHome + "/" + testName; Configuration.ClearDir(testHome); DatabaseEnvironment env; uint maxLocks; DatabaseEntry obj; maxLocks = 1; obj = new DatabaseEntry(); /* * Initialize environment using locking subsystem. The max number * of locks should be larger than environment's partitions. So in * order to make the MaxLock work, the environment paritition is * set to be the same value as MaxLock. */ LockTest.LockingEnvSetUp(testHome, testName, out env, maxLocks, 0, 0, maxLocks); Assert.AreEqual(maxLocks, env.MaxLocks); env.Close(); }
public void TestMaxLocker() { testName = "TestMaxLocker"; SetUpTest(true); DatabaseEnvironment env; uint maxLockers; maxLockers = 1; LockTest.LockingEnvSetUp(testHome, testName, out env, 0, maxLockers, 0, 0); Assert.AreEqual(maxLockers, env.MaxLockers); env.Close(); }
public void TestMaxLocker() { testName = "TestMaxLocker"; testHome = testFixtureHome + "/" + testName; Configuration.ClearDir(testHome); DatabaseEnvironment env; uint maxLockers; maxLockers = 1; LockTest.LockingEnvSetUp(testHome, testName, out env, 0, maxLockers, 0, 0); Assert.AreEqual(maxLockers, env.MaxLockers); env.Close(); }
public void TestMaxObjects() { testName = "TestMaxObjects"; SetUpTest(true); DatabaseEnvironment env; uint maxObjects; maxObjects = 1; /* * Initialize environment using locking subsystem. The max number * of objects should be larger than environment's partitions. So * in order to make the MaxObject work, the environment paritition * is set to be the same value as MaxObject. */ LockTest.LockingEnvSetUp(testHome, testName, out env, 0, 0, maxObjects, maxObjects); Assert.AreEqual(maxObjects, env.MaxObjects); env.Close(); }