- mesh.open("basic_conf", "bar", "basicpp", DEV_CLASS_BACKBONE);
-
- if(mesh.get_node("bar")) {
- cerr << "Foo knows about bar, it shouldn't\n";
- return 1;
- }
-
- self = mesh.get_node("foo");
- if(!self) {
- cerr << "Foo doesn't know about itself the second time\n";
- return 1;
- }
- if(strcmp(self->name, "foo")) {
- cerr << "Foo thinks its name is " << self->name << " the second time\n";
- return 1;
- }
+ assert(!mesh.get_node("bar"));
+ self = mesh.get_self();
+ assert(self);
+ assert(!strcmp(self->name, "foo"));