Fix: lib: handle BT_FUNC_STATUS_NOT_FOUND in bt_plugin_so_create_all_from_sections
[babeltrace.git] / tests / lib / test-plugin-init-fail.sh
1 #!/bin/bash
2 #
3 # SPDX-License-Identifier: GPL-2.0-only
4 #
5 # Copyright (C) 2024 EfficiOS, Inc.
6 #
7
8 if [ -n "${BT_TESTS_SRCDIR:-}" ]; then
9 UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
10 else
11 UTILSSH="$(dirname "$0")/../utils/utils.sh"
12 fi
13
14 # shellcheck source=../utils/utils.sh
15 source "$UTILSSH"
16
17 ret=0
18
19 "${BT_TESTS_BUILDDIR}/lib/test-plugin-init-fail" "${BT_TESTS_BUILDDIR}/lib/test-plugin-init-fail-plugin/.libs" yes || ret=1
20 "${BT_TESTS_BUILDDIR}/lib/test-plugin-init-fail" "${BT_TESTS_BUILDDIR}/lib/test-plugin-init-fail-plugin/.libs" no || ret=1
21
22 exit $ret
This page took 0.029415 seconds and 4 git commands to generate.