示例#1
0
        public void H5Odisable_mdc_flushesTestSWMR2()
        {
            hid_t grp = H5G.create(m_v3_test_file_no_swmr, "/A/B/C", m_lcpl);

            Assert.IsTrue(grp >= 0);
            Assert.IsTrue(H5O.disable_mdc_flushes(grp) >= 0);
            Assert.IsTrue(H5G.flush(grp) >= 0);
            Assert.IsTrue(H5G.close(grp) >= 0);
        }
示例#2
0
        public void H5Odisable_mdc_flushesTestSWMR3()
        {
            hid_t grp = H5G.create(m_v3_test_file_swmr, "/A/B/C", m_lcpl);

            Assert.IsTrue(grp >= 0);

            hbool_t flag = 11;

            Assert.IsTrue(H5O.are_mdc_flushes_disabled(grp, ref flag) >= 0);
            Console.WriteLine(flag);
            Assert.IsTrue(flag == 0);

            Assert.IsTrue(H5O.disable_mdc_flushes(grp) >= 0);

            Assert.IsTrue(H5O.are_mdc_flushes_disabled(grp, ref flag) >= 0);
            Assert.IsTrue(flag > 0);

            Assert.IsTrue(H5G.flush(grp) >= 0);

            Assert.IsTrue(H5G.close(grp) >= 0);
        }