ClickHouse/tests/queries/0_stateless/02225_unwinder_dwarf_version.sh
Alexey Milovidov 0a56fb9941 Add a test
2022-02-20 21:50:03 +01:00

10 lines
435 B
Bash
Executable File

#!/usr/bin/env bash
# Tags: no-fasttest, no-parallel
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
# In case if DWARF-5 debug info is generated during build, it cannot parse it and correctly show this exception. This is why we limit DWARF version to 4 max.
$CLICKHOUSE_LOCAL --query "SELECT throwIf(1)" 2>&1 | grep -c 'FUNCTION_THROW_IF_VALUE_IS_NON_ZERO'