- if(!meshlink_destroy("basic_conf")) {
- fprintf(stderr, "Could not destroy configuration\n");
- return 1;
- }
-
- if(!access("basic_conf", F_OK) || errno != ENOENT) {
- fprintf(stderr, "Configuration not fully destroyed\n");
- return 1;
- }
-
- return 0;
+ assert(meshlink_destroy("basic_conf"));
+ assert(access("basic_conf", F_OK) == -1 && errno == ENOENT);