X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Fconds%2Futils.cpp;fp=tests%2Flib%2Fconds%2Futils.cpp;h=9bf5450fe5bf56ab461c54e80ccab1439edc5b47;hp=28f0ba40748eecf0000e2811817eea603ac08546;hb=ba33b664622ee13ddf7ce3682986fda048868277;hpb=5d7e57e846a27172cc3bc5d0fcf5b3e55551e289 diff --git a/tests/lib/conds/utils.cpp b/tests/lib/conds/utils.cpp index 28f0ba40..9bf5450f 100644 --- a/tests/lib/conds/utils.cpp +++ b/tests/lib/conds/utils.cpp @@ -4,6 +4,7 @@ * Copyright (C) 2020 Philippe Proulx */ +#include #include #include @@ -57,6 +58,14 @@ void condMain(const int argc, const char ** const argv, const CondTriggers condT if (strcmp(argv[1], "list") == 0) { listCondTriggers(condTriggers); } else if (strcmp(argv[1], "run") == 0) { + /* + * It's expected that calling `*condTriggers[index]` below + * aborts (calls bt_common_abort()). In this testing context, we + * don't want any custom abortion command to run. + */ + g_unsetenv("BABELTRACE_EXEC_ON_ABORT"); + + /* Call the trigger */ BT_ASSERT(argc >= 3); const auto index = atoi(argv[2]);