Esempio n. 1
0
        public void H5Oincr_refcountTest1()
        {
            hid_t gid = H5G.create(m_v0_test_file, "A/B/C", m_lcpl);

            Assert.IsTrue(gid >= 0);

            // Don't try this at home!
            Assert.IsTrue(H5O.incr_refcount(gid) >= 0);

            Assert.IsTrue(H5G.close(gid) >= 0);

            gid = H5G.create(m_v2_test_file, "A/B/C", m_lcpl);
            Assert.IsTrue(gid >= 0);

            // Don't try this at home!
            Assert.IsTrue(H5O.incr_refcount(gid) >= 0);

            Assert.IsTrue(H5G.close(gid) >= 0);
        }
Esempio n. 2
0
 public void H5Oincr_refcountTest2()
 {
     Assert.IsFalse(
         H5O.incr_refcount(Utilities.RandomInvalidHandle()) >= 0);
 }