mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
fe68fb0525
SUSE kernels distribution enables CONFIG_PRINTK_CALLER by default. One line of cat /dev/kmsg is like: 6,904,9506214456,-,caller=T24012;loop8: detected capacity change from 0 to 354304 If CONFIG_PRINTK_CALLER is off: 6,721,53563833,-;loop0: detected capacity change from 0 to 354304 ',caller=T24012' is the redundant part needed to be handled. Otherwise pos will be lager than buf size causing sz underflowed. Then constructor of std::string will throw a exception to break tests: $ make check_local T=shell/000-basic.sh VERBOSE=0 ./lib/runner \ --testdir . --outdir results \ --flavours ndev-vanilla --only shell/000-basic.sh --skip @ running 1 tests running: [ndev-vanilla] shell/000-basic.sh 0:00.000Exception: basic_string::_M_create make[1]: *** [Makefile:148: check_local] Error 1 make[1]: Leaving directory '/root/lvm2/test' make: *** [Makefile:89: check_local] Error 2 Fix it with strchr for ';' as delimiter to get pos. Reported-by: Su Yue <glass.su@suse.com> |
||
---|---|---|
.. | ||
aux.sh | ||
brick-shelltest.h | ||
check.sh | ||
dmsecuretest.c | ||
flavour-ndev-cluster-lvmpolld.sh | ||
flavour-ndev-cluster.sh | ||
flavour-ndev-devicesfile.sh | ||
flavour-ndev-lvmpolld.sh | ||
flavour-ndev-vanilla.sh | ||
flavour-udev-cluster-lvmpolld.sh | ||
flavour-udev-cluster.sh | ||
flavour-udev-lvmlockd-dlm.sh | ||
flavour-udev-lvmlockd-idm.sh | ||
flavour-udev-lvmlockd-sanlock.sh | ||
flavour-udev-lvmlockd-test.sh | ||
flavour-udev-lvmpolld.sh | ||
flavour-udev-vanilla.sh | ||
get.sh | ||
harness.c | ||
idm_inject_failure.c | ||
inittest.sh | ||
lvm_vdo_wrapper.sh | ||
lvm-wrapper.sh | ||
mke2fs.conf | ||
not.c | ||
runner.cpp | ||
test-corosync-conf | ||
test-dlm-conf | ||
test-sanlock-conf | ||
utils.sh |