X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Fcommon.c;h=8c2829a365eb7f6e90f4a63c8fa583cdd7936f4c;hb=dc3fffef7b84cc4af1a7c99828fd57a106cd2257;hp=0b8ebdf1206296691a84f963feb0cb44f5c2cd07;hpb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;p=babeltrace.git diff --git a/tests/lib/common.c b/tests/lib/common.c index 0b8ebdf1..8c2829a3 100644 --- a/tests/lib/common.c +++ b/tests/lib/common.c @@ -19,30 +19,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include -#include #include #include #include -struct bt_context *create_context_with_path(const char *path) -{ - struct bt_context *ctx; - int ret; - - ctx = bt_context_create(); - if (!ctx) { - return NULL; - } - - ret = bt_context_add_trace(ctx, path, "ctf", NULL, NULL, NULL); - if (ret < 0) { - bt_context_put(ctx); - return NULL; - } - return ctx; -} - void recursive_rmdir(const char *path) { struct dirent *entry;