Skip to content

Commit b4a4189

Browse files
committed
Unit test for uninitialized System info
1 parent 6094caa commit b4a4189

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/systems/systems_test.C

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ public:
445445

446446
CPPUNIT_TEST( test100KVariables );
447447

448+
CPPUNIT_TEST( testUninitializedInfo );
449+
448450
CPPUNIT_TEST( testPostInitAddVector );
449451
CPPUNIT_TEST( testAddVectorProjChange );
450452
CPPUNIT_TEST( testAddVectorTypeChange );
@@ -621,6 +623,17 @@ public:
621623
CPPUNIT_ASSERT_EQUAL(sys.get_dof_map().n_dofs(888), dof_id_type(5));
622624
}
623625

626+
void testUninitializedInfo()
627+
{
628+
Mesh mesh(*TestCommWorld);
629+
EquationSystems es(mesh);
630+
ExplicitSystem & sys = simpleSetup(mesh, es);
631+
632+
auto info = sys.get_info();
633+
634+
CPPUNIT_ASSERT (info.find("uninitialized") != std::string::npos);
635+
}
636+
624637

625638
void testPostInitAddVector()
626639
{

0 commit comments

Comments
 (0)