mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test
This commit is contained in:
parent
53fbe0bb43
commit
445b494f88
@ -0,0 +1 @@
|
||||
Ok
|
14
dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh
Executable file
14
dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
# Implementation specific behaviour on overflow. We may return error or produce empty string.
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(nan);" >/dev/null 2>&1 ||:
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(inf);" >/dev/null 2>&1 ||:
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(-inf);" >/dev/null 2>&1 ||:
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(1e300);" >/dev/null 2>&1 ||:
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(-123.456);" >/dev/null 2>&1 ||:
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(-1);" >/dev/null 2>&1 ||:
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT randomPrintableASCII(0), 'Ok';"
|
Loading…
Reference in New Issue
Block a user