Mock Version: 1.4.2 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/bstrlib.spec'], chrootPath='/var/lib/mock/585367-fedora-rawhide-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--private-network']printOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '30412b8004ce4a79adf6c7f155807511', '-D', '/var/lib/mock/585367-fedora-rawhide-x86_64/root', '-a', '--private-network', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/bstrlib.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/bstrlib-1.0.0-1.fc27.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/bstrlib.spec'], chrootPath='/var/lib/mock/585367-fedora-rawhide-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--private-network', '--private-network']printOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'db3a244b362c492ba254c7c8a1f8fed5', '-D', '/var/lib/mock/585367-fedora-rawhide-x86_64/root', '-a', '--private-network', '--private-network', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/bstrlib.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eRbx6P + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bstrlib-1.0.0 + /usr/bin/unzip -qq /builddir/build/SOURCES/v1.0.0.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd bstrlib-1.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /builddir/build/SOURCES/Makefile Makefile + sed -i 's|@VER@|1.0.0|g' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6SbiPO + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + make -j2 'RPM_OPT_FLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' bstrlib gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o bstrlib.o bstrlib.c gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o bstraux.o bstraux.c gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o utf8util.o utf8util.c gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o buniutil.o buniutil.c gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -shared -Wl,-soname=libbstr.so.1.0.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libbstr.so.1.0.0 bstrlib.o bstraux.o utf8util.o buniutil.o + ln -sf libbstr.so.1.0.0 libbstr.so + make -j2 'RPM_OPT_FLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' bstrlibc++ g++ -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o bstrwrap.o bstrwrap.cpp gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -shared -Wl,-soname=libbstr.so.1.0.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libbstr.so.1.0.0 bstrlib.o bstraux.o utf8util.o buniutil.o g++ -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -nodefaultlibs -shared -Wl,-soname=libbstrc++.so.1.0.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libbstrc++.so.1.0.0 -L. bstrwrap.o -lstdc++ -lgcc -lc -lbstr #avoid rpmlint from complaining about unused direct shared library dependency on libm + make -j2 'RPM_OPT_FLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' bstrlibsafe gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -c -o bsafe.o bsafe.c gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -shared -Wl,-soname=libbstr.so.1.0.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libbstr.so.1.0.0 bstrlib.o bstraux.o utf8util.o buniutil.o gcc -pedantic -ansi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -I. -shared -Wl,-soname=libbstrsafe.so.1.0.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libbstrsafe.so.1.0.0 bsafe.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.GAenlX + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 ++ dirname /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 + cd bstrlib-1.0.0 + mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 + for f in libbstr.so.1.0.0 libbstrsafe.so.1.0.0 libbstrc++.so.1.0.0 + cp -p -f /builddir/build/BUILD/bstrlib-1.0.0/libbstr.so.1.0.0 /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstr.so.1.0.0 + for f in libbstr.so.1.0.0 libbstrsafe.so.1.0.0 libbstrc++.so.1.0.0 + cp -p -f /builddir/build/BUILD/bstrlib-1.0.0/libbstrsafe.so.1.0.0 /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstrsafe.so.1.0.0 + for f in libbstr.so.1.0.0 libbstrsafe.so.1.0.0 libbstrc++.so.1.0.0 + cp -p -f /builddir/build/BUILD/bstrlib-1.0.0/libbstrc++.so.1.0.0 /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstrc++.so.1.0.0 + make clean rm -f *.o + mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/include/bstrlib/ + cp -a /builddir/build/BUILD/bstrlib-1.0.0/bsafe.h /builddir/build/BUILD/bstrlib-1.0.0/bstraux.h /builddir/build/BUILD/bstrlib-1.0.0/bstrlib.h /builddir/build/BUILD/bstrlib-1.0.0/bstrwrap.h /builddir/build/BUILD/bstrlib-1.0.0/buniutil.h /builddir/build/BUILD/bstrlib-1.0.0/utf8util.h /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/include/bstrlib/ + cd /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 + ln -sf libbstr.so.1.0.0 libbstr.so + ln -sf libbstr.so.1.0.0 libbstr.so.1 + ln -sf libbstr.so.1.0.0 libbstr.so.1.0 + ln -sf libbstrsafe.so.1.0.0 libbstrsafe.so + ln -sf libbstrsafe.so.1.0.0 libbstrsafe.so.1 + ln -sf libbstrsafe.so.1.0.0 libbstrsafe.so.1.0 + ln -sf libbstrc++.so.1.0.0 libbstrc++.so + ln -sf libbstrc++.so.1.0.0 libbstrc++.so.1 + ln -sf libbstrc++.so.1.0.0 libbstrc++.so.1.0 + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m --build-id-seed 1.0.0-1.fc27 --unique-debug-suffix -1.0.0-1.fc27.x86_64 --unique-debug-src-base bstrlib-1.0.0-1.fc27.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/bstrlib-1.0.0 extracting debug info from /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstrsafe.so.1.0.0 extracting debug info from /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstrc++.so.1.0.0 extracting debug info from /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64/libbstr.so.1.0.0 /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 426 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.KPVWG6 + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + mkdir test + cd test + gcc -c -Wall /builddir/build/BUILD/bstrlib-1.0.0/bstest.c /builddir/build/BUILD/bstrlib-1.0.0/bstest.c: In function 'test0_2': /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:181:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'unsigned char *' [-Wformat=] printf ("[%d] \"%s\" != \"%s\"\n", b->data, t); ~^ ~~~~~~~ %hhn /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:181:33: warning: format '%s' expects a matching 'char *' argument [-Wformat=] printf ("[%d] \"%s\" != \"%s\"\n", b->data, t); ~^ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c: In function 'test47_0': /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:635:71: warning: pointer targets in passing argument 1 of 'dumpCstring' differ in signedness [-Wpointer-sign] printf (".\tbiseqblk (%s, %s) = %d\n", dumpBstring (b), dumpCstring (blk), rv); ^~~ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:75:14: note: expected 'const char *' but argument is of type 'const unsigned char *' static char* dumpCstring (const char* s) { ^~~~~~~~~~~ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c: In function 'test15_0': /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:1072:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!biseq (b0, b2)) ret++; if (ret && 0 == linenum) linenum = __LINE__; ^~ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:1072:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (!biseq (b0, b2)) ret++; if (ret && 0 == linenum) linenum = __LINE__; ^~ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c: In function 'test48_0': /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:3040:83: warning: pointer targets in passing argument 1 of 'dumpCstring' differ in signedness [-Wpointer-sign] printf (".\tbiseqcaselessblk (%s, %s, %d) = %d\n", dumpBstring (b), dumpCstring (blk), len, rv); ^~~ /builddir/build/BUILD/bstrlib-1.0.0/bstest.c:75:14: note: expected 'const char *' but argument is of type 'const unsigned char *' static char* dumpCstring (const char* s) { ^~~~~~~~~~~ + gcc -g -Wall -o bstest -L/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 -lbstr bstest.o -I/builddir/build/BUILD/usr/include/bstrlib/ -Wl,-rpath=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 + ./bstest Direct case testing of bstring core functions TEST: bstring bfromcstr (const char * str); . bfromcstr (NULL) = NULL . bfromcstr ("") = 0x1fdc2b0:"" . bfromcstr ("bogus") = 0x1fdc2b0:"bogus" . bfromcstr ("This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdc2b0:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." # failures: 0 TEST: bstring bfromcstralloc (int len, const char * str); . bfromcstralloc (*, NULL) = NULL . bfromcstralloc (*, NULL) = NULL . bfromcstralloc (0, "") = 0x1fdc500:"" . bfromcstralloc (30, "") = 0x1fdc500:"" . bfromcstralloc (0, "bogus") = 0x1fdc500:"bogus" . bfromcstralloc (30, "bogus") = 0x1fdc500:"bogus" . bfromcstralloc (0, "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdc500:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bfromcstralloc (30, "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdc500:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." TEST: bstring bfromcstrrangealloc (int minl, int maxl, const char * str); . bfromcstrrangealloc (*,*,NULL) correct . bfromcstrrangealloc (*,*,cstr[0x4113b0] -> "") correct . bfromcstrrangealloc (*,*,cstr[0x411578] -> "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") correct # failures: 0 TEST: bstring blk2bstr (const void * blk, int len); . blk2bstr (NULL, len=10) = NULL . blk2bstr (NULL, len=0) = NULL . blk2bstr (NULL, len=-1) = NULL . blk2bstr (blk=0x41156c, len=5) = 0x1fdcd20:"bogus" . blk2bstr (blk=0x411578, len=86) = 0x1fdcd20:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . blk2bstr (blk=0x411578, len=5) = 0x1fdcd20:"This " . blk2bstr (blk=0x411578, len=0) = 0x1fdcd20:"" . blk2bstr (NULL, len=-1) = NULL # failures: 0 TEST: char * bstr2cstr (const_bstring s, char z); . bstr2cstr (NULL, 3F) = NULL . bstr2cstr (0x6162e0[c]:"", 3F) = "" . bstr2cstr (0x6162f0[c]:"bogus", 3F) = "bogus" . bstr2cstr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 3F) = "This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bstr2cstr (0x616310:[err:data=NULL], 3F) = NULL . bstr2cstr (0x616320:[err:slen=-5<0], 3F) = NULL # failures: 0 TEST: bstring bstrcpy (const_bstring b1); . bstrcpy (NULL) = NULL . bstrcpy (0x616310:[err:data=NULL]) = NULL . bstrcpy (0x616320:[err:slen=-5<0]) = NULL . bstrcpy (0x6162e0[c]:"") = 0x1fdc290:"" . bstrcpy (0x6162f0[c]:"bogus") = 0x1fdc290:"bogus" . bstrcpy (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdc290:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." # failures: 0 TEST: bstring bmidstr (const_bstring b, int left, int len); . bmidstr (NULL, 0, 0) = NULL . bmidstr (NULL, 0, 2) = NULL . bmidstr (NULL, 0, -2) = NULL . bmidstr (NULL, -5, 2) = NULL . bmidstr (NULL, -5, -2) = NULL . bmidstr (0x616310:[err:data=NULL], 1, 3) = NULL . bmidstr (0x616320:[err:slen=-5<0], 1, 3) = NULL . bmidstr (0x6162e0[c]:"", 0, 0) = 0x1fdc5b0:"" . bmidstr (0x6162e0[c]:"", 0, -1) = 0x1fdc5b0:"" . bmidstr (0x6162e0[c]:"", 1, 3) = 0x1fdc5b0:"" . bmidstr (0x6162f0[c]:"bogus", 0, 0) = 0x1fdc5b0:"" . bmidstr (0x6162f0[c]:"bogus", 0, -1) = 0x1fdc5b0:"" . bmidstr (0x6162f0[c]:"bogus", 1, 3) = 0x1fdc5b0:"ogu" . bmidstr (0x6162f0[c]:"bogus", -1, 3) = 0x1fdc5b0:"bo" . bmidstr (0x6162f0[c]:"bogus", -1, 9) = 0x1fdc5b0:"bogus" . bmidstr (0x6162f0[c]:"bogus", 3, -1) = 0x1fdc5b0:"" . bmidstr (0x6162f0[c]:"bogus", 9, 3) = 0x1fdc5b0:"" # failures: 0 TEST: int bconcat (bstring b0, const_bstring b1); . bconcat (NULL, NULL) = -1 . bconcat (NULL, 0x6162e0[c]:"") = -1 . bconcat (0x6162e0[c]:"", NULL) = -1 . bconcat (0x6162e0[c]:"", 0x616310:[err:data=NULL]) = -1 . bconcat (0x6162e0[c]:"", 0x616320:[err:slen=-5<0]) = -1 . bconcat (0x616310:[err:data=NULL], 0x6162e0[c]:"") = -1 . bconcat (0x616320:[err:slen=-5<0], 0x6162e0[c]:"") = -1 . bconcat (0x1fdc5b0[p]:"", 0x6162e0[c]:"") = 0x1fdc5b0[p]:"" . bconcat (0x1fdc5b0:"", 0x6162e0[c]:"") = 0x1fdc5b0:"" . bconcat (0x1fdc5b0[p]:"", 0x6162f0[c]:"bogus") = 0x1fdc5b0[p]:"" . bconcat (0x1fdc5b0:"", 0x6162f0[c]:"bogus") = 0x1fdc5b0:"bogus" . bconcat (0x1fdc5b0[p]:"bogus", 0x6162e0[c]:"") = 0x1fdc5b0[p]:"bogus" . bconcat (0x1fdc5b0:"bogus", 0x6162e0[c]:"") = 0x1fdc5b0:"bogus" . bconcat (0x1fdc5b0[p]:"bogus", 0x6162f0[c]:"bogus") = 0x1fdc5b0[p]:"bogus" . bconcat (0x1fdc5b0:"bogus", 0x6162f0[c]:"bogus") = 0x1fdc5b0:"bogusbogus" TEST: bconcat aliasing # failures: 0 TEST: int bconchar (bstring b, char c); . bconchar (NULL, x) = -1 . bconchar (0x616310:[err:data=NULL], x) = -1 . bconchar (0x616320:[err:slen=-5<0], x) = -1 . bconchar (0x6162e0[c]:"", x) = 0x1fdc560[p]:"" . bconchar (0x6162e0[c]:"", x) = 0x1fdc560:"x" . bconchar (0x6162f0[c]:"bogus", x) = 0x1fdc560[p]:"bogus" . bconchar (0x6162f0[c]:"bogus", x) = 0x1fdc560:"bogusx" # failures: 0 TEST: int biseq (const_bstring b0, const_bstring b1); . biseq (NULL, NULL) = -1 . biseq (0x6162e0[c]:"", NULL) = -1 . biseq (NULL, 0x6162e0[c]:"") = -1 . biseq (0x6162f0[c]:"bogus", NULL) = -1 . biseq (NULL, 0x6162f0[c]:"bogus") = -1 . biseq (0x616310:[err:data=NULL], 0x616310:[err:data=NULL]) = -1 . biseq (0x616320:[err:slen=-5<0], 0x616320:[err:slen=-5<0]) = -1 . biseq (0x6162f0[c]:"bogus", 0x616320:[err:slen=-5<0]) = -1 . biseq (0x616320:[err:slen=-5<0], 0x6162f0[c]:"bogus") = -1 . biseq (0x6162e0[c]:"", 0x6162e0[c]:"") = 1 . biseq (0x6162f0[c]:"bogus", 0x6162e0[c]:"") = 0 . biseq (0x6162e0[c]:"", 0x6162f0[c]:"bogus") = 0 . biseq (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus") = 1 . biseq (0x1fdc560:"bpgus", 0x6162f0[c]:"bogus") = 0 . biseq (0x6162f0[c]:"bogus", 0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0 . biseq (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus") = 0 # failures: 0 TEST: int bstrcmp (const_bstring b0, const_bstring b1); . bstrcmp (NULL, NULL) = -32768 . bstrcmp (0x6162e0[c]:"", NULL) = -32768 . bstrcmp (NULL, 0x6162e0[c]:"") = -32768 . bstrcmp (0x6162f0[c]:"bogus", NULL) = -32768 . bstrcmp (NULL, 0x6162f0[c]:"bogus") = -32768 . bstrcmp (0x616310:[err:data=NULL], 0x616310:[err:data=NULL]) = -32768 . bstrcmp (0x616320:[err:slen=-5<0], 0x616320:[err:slen=-5<0]) = -32768 . bstrcmp (0x6162f0[c]:"bogus", 0x616320:[err:slen=-5<0]) = -32768 . bstrcmp (0x616320:[err:slen=-5<0], 0x6162f0[c]:"bogus") = -32768 . bstrcmp (0x6162e0[c]:"", 0x6162e0[c]:"") = 0 . bstrcmp (0x6162f0[c]:"bogus", 0x6162e0[c]:"") = 1 . bstrcmp (0x6162e0[c]:"", 0x6162f0[c]:"bogus") = -1 . bstrcmp (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus") = 0 . bstrcmp (0x1fdc560:"bpgus", 0x6162f0[c]:"bogus") = 1 . bstrcmp (0x6162f0[c]:"bogus", 0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 14 . bstrcmp (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus") = -14 # failures: 0 TEST: int bstrncmp (const_bstring b0, const_bstring b1, int n); . bstrncmp (NULL, NULL, 0) = -32768 . bstrncmp (NULL, NULL, -1) = -32768 . bstrncmp (NULL, NULL, 1) = -32768 . bstrncmp (0x6162e0[c]:"", NULL, 0) = -32768 . bstrncmp (NULL, 0x6162e0[c]:"", 0) = -32768 . bstrncmp (0x6162e0[c]:"", NULL, 1) = -32768 . bstrncmp (NULL, 0x6162e0[c]:"", 1) = -32768 . bstrncmp (0x616310:[err:data=NULL], 0x616310:[err:data=NULL], 1) = -32768 . bstrncmp (0x616320:[err:slen=-5<0], 0x616320:[err:slen=-5<0], 1) = -32768 . bstrncmp (0x6162e0[c]:"", 0x616310:[err:data=NULL], 1) = -32768 . bstrncmp (0x6162e0[c]:"", 0x616320:[err:slen=-5<0], 1) = -32768 . bstrncmp (0x616310:[err:data=NULL], 0x6162e0[c]:"", 1) = -32768 . bstrncmp (0x616320:[err:slen=-5<0], 0x6162e0[c]:"", 1) = -32768 . bstrncmp (0x6162e0[c]:"", 0x6162e0[c]:"", -1) = 0 . bstrncmp (0x6162e0[c]:"", 0x6162e0[c]:"", 0) = 0 . bstrncmp (0x6162e0[c]:"", 0x6162e0[c]:"", 1) = 0 . bstrncmp (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus", -1) = 0 . bstrncmp (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus", 0) = 0 . bstrncmp (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus", 1) = 0 . bstrncmp (0x6162f0[c]:"bogus", 0x6162f0[c]:"bogus", 9) = 0 # failures: 0 TEST: int bdestroy (const_bstring b); . bdestroy (NULL) = -1 . bdestroy (0x1fdc830[p]:"") = -1 . bdestroy (0x1fdc560[p]:"bogus") = -1 . bdestroy (0x1fdc830:"") = 0 . bdestroy (0x1fdc560:"bogus") = 0 . bdestroy (0x6162e0[c]:"") = -1 . bdestroy (0x6162e0[c]:"") = -1 . bdestroy (0x6162f0[c]:"bogus") = -1 . bdestroy (0x6162f0[c]:"bogus") = -1 . bdestroy (0x616310:[err:data=NULL]) = -1 . bdestroy (0x616320:[err:slen=-5<0]) = -1 # failures: 0 TEST: int binstr (const_bstring s1, int pos, const_bstring s2); . binstr (NULL, 0, NULL) = -1 . binstr (0x6162e0[c]:"", 0, NULL) = -1 . binstr (NULL, 0, 0x6162e0[c]:"") = -1 . binstr (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binstr (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binstr (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binstr (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binstr (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binstr (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binstr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = 0 . binstr (0x6162e0[c]:"", 1, 0x6162e0[c]:"") = -1 . binstr (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = -1 . binstr (0x6162f0[c]:"bogus", 5, 0x6162e0[c]:"") = 5 . binstr (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binstr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binstr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binstr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"BOGUS") = -1 . binstr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = 10 . binstr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 20, 0x6162f0[c]:"bogus") = -1 . binstr (0x1fdc830:"sssssssssap", 0, 0x1fdc560:"sap") = 8 . binstr (0x1fdc830:"sssssssssap", 3, 0x1fdc560:"sap") = 8 . binstr (0x1fdc830:"ssssssssssap", 3, 0x1fdc560:"sap") = 9 . binstr (0x1fdc830:"sssssssssap", 0, 0x1fdc560:"s") = 0 . binstr (0x1fdc830:"sssssssssap", 3, 0x1fdc560:"s") = 3 . binstr (0x1fdc830:"sssssssssap", 0, 0x1fdc560:"a") = 9 . binstr (0x1fdc830:"sssssssssap", 5, 0x1fdc560:"a") = 9 . binstr (0x1fdc830:"sasasasasap", 0, 0x1fdc560:"sap") = 8 . binstr (0x1fdc830:"ssasasasasap", 0, 0x1fdc560:"sap") = 9 TEST: int binstrcaseless (const_bstring s1, int pos, const_bstring s2); . binstrcaseless (NULL, 0, NULL) = -1 . binstrcaseless (0x6162e0[c]:"", 0, NULL) = -1 . binstrcaseless (NULL, 0, 0x6162e0[c]:"") = -1 . binstrcaseless (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binstrcaseless (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binstrcaseless (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binstrcaseless (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binstrcaseless (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binstrcaseless (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binstrcaseless (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = 0 . binstrcaseless (0x6162e0[c]:"", 1, 0x6162e0[c]:"") = -1 . binstrcaseless (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = -1 . binstrcaseless (0x6162f0[c]:"bogus", 5, 0x6162e0[c]:"") = 5 . binstrcaseless (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binstrcaseless (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binstrcaseless (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binstrcaseless (0x6162f0[c]:"bogus", 0, 0x1fdc560:"BOGUS") = 0 . binstrcaseless (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = 10 . binstrcaseless (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 20, 0x6162f0[c]:"bogus") = -1 # failures: 0 TEST: int binstrr (const_bstring s1, int pos, const_bstring s2); . binstrr (NULL, 0, NULL) = -1 . binstrr (0x6162e0[c]:"", 0, NULL) = -1 . binstrr (NULL, 0, 0x6162e0[c]:"") = -1 . binstrr (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binstrr (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binstrr (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binstrr (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binstrr (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binstrr (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binstrr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = 0 . binstrr (0x6162e0[c]:"", 1, 0x6162e0[c]:"") = -1 . binstrr (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = 0 . binstrr (0x6162f0[c]:"bogus", 5, 0x6162e0[c]:"") = 5 . binstrr (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binstrr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binstrr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binstrr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"BOGUS") = -1 . binstrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = -1 . binstrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 20, 0x6162f0[c]:"bogus") = 10 TEST: int binstrrcaseless (const_bstring s1, int pos, const_bstring s2); . binstrrcaseless (NULL, 0, NULL) = -1 . binstrrcaseless (0x6162e0[c]:"", 0, NULL) = -1 . binstrrcaseless (NULL, 0, 0x6162e0[c]:"") = -1 . binstrrcaseless (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binstrrcaseless (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binstrrcaseless (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binstrrcaseless (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binstrrcaseless (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binstrrcaseless (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binstrrcaseless (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = 0 . binstrrcaseless (0x6162e0[c]:"", 1, 0x6162e0[c]:"") = -1 . binstrrcaseless (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = 0 . binstrrcaseless (0x6162f0[c]:"bogus", 5, 0x6162e0[c]:"") = 5 . binstrrcaseless (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binstrrcaseless (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binstrrcaseless (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binstrrcaseless (0x6162f0[c]:"bogus", 0, 0x1fdc560:"BOGUS") = 0 . binstrrcaseless (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = -1 . binstrrcaseless (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 20, 0x6162f0[c]:"bogus") = 10 # failures: 0 TEST: int binchr (const_bstring s1, int pos, const_bstring s2); . binchr (NULL, 0, NULL) = -1 . binchr (0x6162e0[c]:"", 0, NULL) = -1 . binchr (NULL, 0, 0x6162e0[c]:"") = -1 . binchr (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binchr (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binchr (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binchr (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binchr (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binchr (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binchr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = -1 . binchr (0x6162f0[c]:"bogus", 0, 0x6162e0[c]:"") = -1 . binchr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binchr (0x6162f0[c]:"bogus", 0, 0x7ffc07ba77f0[c]:"ooooo") = 1 . binchr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binchr (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binchr (0x6162f0[c]:"bogus", 10, 0x6162f0[c]:"bogus") = -1 . binchr (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = 1 . binchr (0x6162e0[c]:"", 0, 0x6162f0[c]:"bogus") = -1 . binchr (0x616340[c]:"xxxxx", 0, 0x6162f0[c]:"bogus") = -1 . binchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = 3 . binchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 10, 0x6162f0[c]:"bogus") = 10 # failures: 0 TEST: int binchrr (const_bstring s1, int pos, const_bstring s2); . binchrr (NULL, 0, NULL) = -1 . binchrr (0x6162e0[c]:"", 0, NULL) = -1 . binchrr (NULL, 0, 0x6162e0[c]:"") = -1 . binchrr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = -1 . binchrr (0x6162f0[c]:"bogus", 0, 0x6162e0[c]:"") = -1 . binchrr (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL]) = -1 . binchrr (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0]) = -1 . binchrr (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"") = -1 . binchrr (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"") = -1 . binchrr (0x616320:[err:slen=-5<0], 0, 0x616310:[err:data=NULL]) = -1 . binchrr (0x616310:[err:data=NULL], 0, 0x616320:[err:slen=-5<0]) = -1 . binchrr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = 0 . binchrr (0x6162f0[c]:"bogus", 0, 0x1fdc560:"bogus") = 0 . binchrr (0x6162f0[c]:"bogus", -1, 0x6162f0[c]:"bogus") = -1 . binchrr (0x6162f0[c]:"bogus", 5, 0x6162f0[c]:"bogus") = 4 . binchrr (0x6162f0[c]:"bogus", 4, 0x6162f0[c]:"bogus") = 4 . binchrr (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = 1 . binchrr (0x6162e0[c]:"", 0, 0x6162f0[c]:"bogus") = -1 . binchrr (0x616340[c]:"xxxxx", 4, 0x6162f0[c]:"bogus") = -1 . binchrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = -1 . binchrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 10, 0x6162f0[c]:"bogus") = 10 # failures: 0 TEST: int bsetstr (bstring b0, int pos, const_bstring b1, unsigned char fill); . bsetstr (NULL, 0, NULL, 3F) = -1 . bsetstr (NULL, 0, 0x6162e0[c]:"", 3F) = -1 . bsetstr (0x616310:[err:data=NULL], 0, NULL, 3F) = -1 . bsetstr (0x616310:[err:data=NULL], 0, 0x616310:[err:data=NULL], 3F) = -1 . bsetstr (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL], 3F) = -1 . bsetstr (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"", 3F) = -1 . bsetstr (0x616320:[err:slen=-5<0], 0, NULL, 3F) = -1 . bsetstr (0x616320:[err:slen=-5<0], 0, 0x616320:[err:slen=-5<0], 3F) = -1 . bsetstr (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0], 3F) = -1 . bsetstr (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"", 3F) = -1 . bsetstr (0x1fdc560[p]:"", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"" . bsetstr (0x1fdc560:"", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560:"" . bsetstr (0x1fdc560[p]:"", 5, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"" . bsetstr (0x1fdc560:"", 5, 0x6162e0[c]:"", 3F) = 0x1fdc560:"?????" . bsetstr (0x1fdc560[p]:"", 5, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"" . bsetstr (0x1fdc560:"", 5, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"?????bogus" . bsetstr (0x1fdc560[p]:"bogus", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"bogus" . bsetstr (0x1fdc560:"bogus", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560:"bogus" . bsetstr (0x1fdc560[p]:"", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"" . bsetstr (0x1fdc560:"", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus" . bsetstr (0x1fdc560[p]:"bogus", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . bsetstr (0x1fdc560:"bogus", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus" . bsetstr (0x1fdc560[p]:"bogus", -1, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . bsetstr (0x1fdc560:"bogus", -1, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus" . bsetstr (0x1fdc560[p]:"bogus", 2, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . bsetstr (0x1fdc560:"bogus", 2, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bobogus" . bsetstr (0x1fdc560[p]:"bogus", 6, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . bsetstr (0x1fdc560:"bogus", 6, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus?bogus" . bsetstr (0x6162f0[c]:"bogus", 6, NULL, 3F) = -1 # failures: 0 TEST: int binsert (bstring b0, int pos, const_bstring b1, unsigned char fill); . binsert (NULL, 0, NULL, 3F) = -1 . binsert (NULL, 0, 0x6162e0[c]:"", 3F) = -1 . binsert (0x616310:[err:data=NULL], 0, NULL, 3F) = -1 . binsert (0x616310:[err:data=NULL], 0, 0x616310:[err:data=NULL], 3F) = -1 . binsert (0x6162e0[c]:"", 0, 0x616310:[err:data=NULL], 3F) = -1 . binsert (0x616310:[err:data=NULL], 0, 0x6162e0[c]:"", 3F) = -1 . binsert (0x616320:[err:slen=-5<0], 0, NULL, 3F) = -1 . binsert (0x616320:[err:slen=-5<0], 0, 0x616320:[err:slen=-5<0], 3F) = -1 . binsert (0x6162e0[c]:"", 0, 0x616320:[err:slen=-5<0], 3F) = -1 . binsert (0x616320:[err:slen=-5<0], 0, 0x6162e0[c]:"", 3F) = -1 . binsert (0x1fdc560[p]:"", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"" . binsert (0x1fdc560:"", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560:"" . binsert (0x1fdc560[p]:"", 5, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"" . binsert (0x1fdc560:"", 5, 0x6162e0[c]:"", 3F) = 0x1fdc560:"?????" . binsert (0x1fdc560[p]:"", 5, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"" . binsert (0x1fdc560:"", 5, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"?????bogus" . binsert (0x1fdc560[p]:"bogus", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560[p]:"bogus" . binsert (0x1fdc560:"bogus", 0, 0x6162e0[c]:"", 3F) = 0x1fdc560:"bogus" . binsert (0x1fdc560[p]:"", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"" . binsert (0x1fdc560:"", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus" . binsert (0x1fdc560[p]:"bogus", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . binsert (0x1fdc560:"bogus", 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogusbogus" . binsert (0x1fdc560[p]:"bogus", -1, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . binsert (0x1fdc560:"bogus", -1, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus" . binsert (0x1fdc560[p]:"bogus", 2, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . binsert (0x1fdc560:"bogus", 2, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bobogusgus" . binsert (0x1fdc560[p]:"bogus", 6, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560[p]:"bogus" . binsert (0x1fdc560:"bogus", 6, 0x6162f0[c]:"bogus", 3F) = 0x1fdc560:"bogus?bogus" . binsert (0x6162f0[c]:"bogus", 6, NULL, 3F) = -1 . binsert (0x1fdc560:"aaaaabbbbb", 2, 0x7ffc07ba77a0[c]:"abbbbb", '?') = 0x1fdc560:"aaabbbaaab" (Alias test) # failures: 0 TEST: int bdelete (bstring s1, int pos, int len); . bdelete (NULL, 0, 0) = -1 . bdelete (0x616310:[err:data=NULL], 0, 0) = -1 . bdelete (0x616320:[err:slen=-5<0], 0, 0) = -1 . bdelete (0x1fdc830[p]:"", 0, 0) = 0x1fdc830[p]:"" . bdelete (0x1fdc830:"", 0, 0) = 0x1fdc830:"" . bdelete (0x1fdc830[p]:"bogus", 1, 3) = 0x1fdc830[p]:"bogus" . bdelete (0x1fdc830:"bogus", 1, 3) = 0x1fdc830:"bs" . bdelete (0x1fdc830[p]:"bogus", -1, 3) = 0x1fdc830[p]:"bogus" . bdelete (0x1fdc830:"bogus", -1, 3) = 0x1fdc830:"gus" . bdelete (0x1fdc830[p]:"bogus", 1, -3) = 0x1fdc830[p]:"bogus" . bdelete (0x1fdc830:"bogus", 1, -3) = 0x1fdc830:"bogus" . bdelete (0x1fdc830[p]:"bogus", 3, 9) = 0x1fdc830[p]:"bogus" . bdelete (0x1fdc830:"bogus", 3, 9) = 0x1fdc830:"bog" . bdelete (0x1fdc830[p]:"bogus", 3, 1) = 0x1fdc830[p]:"bogus" . bdelete (0x1fdc830:"bogus", 3, 1) = 0x1fdc830:"bogs" . bdelete (0x1fdc830[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 4, 300) = 0x1fdc830[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bdelete (0x1fdc830:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 4, 300) = 0x1fdc830:"This" # failures: 0 TEST: int balloc (bstring s, int len); . balloc (NULL, 2) = -1 . balloc (0x616310:[err:data=NULL], 2) = -1 . balloc (0x616320:[err:slen=-5<0], 2) = -1 . balloc (0x1fdc830:"test", 2) = 0 . balloc (0x1fdc830:"test", -1) = -1 . balloc (0x1fdc830:"test", 9) = 0 . balloc (0x1fdc830:"test", 2) = 0 . balloc (0x1fdc830[p]:"test", 4) = -1 . balloc (0x1fdc830:"test", 2) = 0 . balloc (0x6162e0[c]:"", 9) = -1 # failures: 0 TEST: int ballocmin (bstring s, int len); . ballocmin (NULL, 2) = [1338] -1 . ballocmin (0x616310:[err:data=NULL], 2) = [1338] -1 . ballocmin (0x616320:[err:slen=-5<0], 2) = [1338] -1 . ballocmin (0x1fdc830:"test", 2) = [1338] 0 . ballocmin (0x1fdc830:"test", -1) = [1338] -1 . ballocmin (0x1fdc830:"test", 9) = [1338] 0 . ballocmin (0x1fdc830:"test", 2) = [1338] 0 . ballocmin (0x1fdc830:"test", 9) = [1338] 0 . ballocmin (0x1fdc830[p]:"test", 4) = [1338] -1 . ballocmin (0x1fdc830:"test", 2) = [1338] 0 . ballocmin (0x6162e0[c]:"", 9) = [1338] -1 # failures: 0 TEST: int bpattern (bstring b, int len); . bpattern (NULL, 0) = -1 . bpattern (NULL, 5) = -1 . bpattern (NULL, -5) = -1 . bpattern (0x616310:[err:data=NULL], 5) = -1 . bpattern (0x616320:[err:slen=-5<0], 5) = -1 . bpattern (0x1fdc830:"", 0) = 0x1fdc830:"" . bpattern (0x1fdcd20:"", 10) = 0x1fdcd20:"" . bpattern (0x1fdcd00:"", -1) = 0x1fdcd00:"" . bpattern (0x1fdc290:"bogus", 0) = 0x1fdc290:"" . bpattern (0x1fddba0:"bogus", 12) = 0x1fddba0:"bogusbogusbo" . bpattern (0x1fddbe0:"bogus", -1) = 0x1fddbe0:"bogus" # failures: 0 TEST: bstring bformat (const char * fmt, ...); . bformat (NULL, 1, 2) = NULL . bformat ("%d %s", 1, "xy") = 0x1fddc20:"1 xy" . bformat ("%d %s(%s)", 6, 0x1fddc60:"1 xy", 0x6162f0[c]:"bogus") = 0x1fddc20:"6 1 xy(bogus)" . bformat ("%s%s%s%s%s%s%s%s", ...) ... # failures: 0 TEST: int bformata (bstring b, const char * fmt, ...); . bformata (0x1fddc20:"", NULL, 1, 2) = -1 . bformata (0x616310:[err:data=NULL], "%d %d", 1, 2) = -1 . bformata (0x1fddc20:"", "%d %d", 1, 2) = 0x1fddc20:"1 2" . bformata ("x", "%s%s%s%s%s%s%s%s", ...) ... # failures: 0 TEST: int bassignformat (bstring b, const char * fmt, ...); . bassignformat (0x1fddc20:"Initial", NULL, 1, 2) = -1 . bassignformat (0x616310:[err:data=NULL], "%d %d", 1, 2) = -1 . bassignformat (0x1fddc20:"Initial", "%d %d", 1, 2) = 0x1fddc20:"1 2" . bassignformat ("x", "%s%s%s%s%s%s%s%s", ...) ... # failures: 0 TEST: struct bstrList * bsplit (const_bstring str, unsigned char splitChar); . bsplit (NULL, '?') = (nil) . bsplit (0x616310:[err:data=NULL], '?') = (nil) . bsplit (0x616320:[err:slen=-5<0], '?') = (nil) . bsplit (0x6162e0[c]:"", '?') = {0x1fddc40:"":<1>} . bsplit (0x6162f0[c]:"bogus", 'o') = {0x1fddc40:"b", 0x1fddc80:"gus":<2>} . bsplit (0x6162f0[c]:"bogus", 's') = {0x1fddc80:"bogu", 0x1fddc40:"":<2>} . bsplit (0x6162f0[c]:"bogus", 'b') = {0x1fddc40:"", 0x1fddc80:"ogus":<2>} . bsplit (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 'o') = {0x1fddc80:"This is a b", 0x1fddc40:"gus but reas", 0x1fde8f0:"nably l", 0x1fde930:"ng string. Just l", 0x1fde9a0:"ng en", 0x1fde9e0:"ugh t", 0x1fdea20:" cause s", 0x1fdea60:"me mall", 0x1fdeb30:"cing.":<9>} . bsplit (0x7ffc07ba77a0[c]:",,,,", ',') = {0x1fde910:"", 0x1fddc60:"", 0x1fde8d0:"", 0x1fddc20:"", 0x1fdea40:"":<5>} TEST: struct bstrList * bsplitstr (bstring str, const_bstring splitStr); . bsplitstr (NULL, NULL) = (nil) . bsplitstr (0x616310:[err:data=NULL], 0x6162e0[c]:"") = (nil) . bsplitstr (0x616320:[err:slen=-5<0], 0x6162e0[c]:"") = (nil) . bsplitstr (0x6162f0[c]:"bogus", 0x6162e0[c]:"") = {0x1fde910:"b", 0x1fdea80:"o", 0x1fdeb50:"g", 0x1fde8f0:"u", 0x1fdeb70:"s":<5>} . bsplitstr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"is") = {0x1fde910:"Th", 0x1fde9e0:" ", 0x1fdea20:" a bogus but reasonably long string. Just long enough to cause some mallocing.":<3>} . bsplitstr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77b0[c]:"ng") = {0x1fdea20:"This is a bogus but reasonably lo", 0x1fde9e0:" stri", 0x1fde910:". Just lo", 0x1fdea40:" enough to cause some malloci", 0x1fddc80:".":<5>} # failures: 0 TEST: extern struct bstrList * bsplits (const_bstring str, const_bstring splitStr); . bsplits (NULL, 0x7ffc07ba77c0[c]:"o") = (nil) . bsplits (0x7ffc07ba77c0[c]:"o", NULL) = (nil) . bsplits (0x6162e0[c]:"", 0x7ffc07ba77c0[c]:"o") {0x1fde8f0:"":<1>} . bsplits (0x6162e0[c]:"", 0x7ffc07ba7780[c]:"uo") {0x1fde8f0:"":<1>} . bsplits (0x6162f0[c]:"bogus", 0x6162e0[c]:"") {0x1fde8f0:"bogus":<1>} . bsplits (0x6162f0[c]:"bogus", 0x7ffc07ba77c0[c]:"o") {0x1fde8f0:"b", 0x1fdeb30:"gus":<2>} . bsplits (0x6162f0[c]:"bogus", 0x7ffc07ba77b0[c]:"s") {0x1fdeb30:"bogu", 0x1fde8f0:"":<2>} . bsplits (0x6162f0[c]:"bogus", 0x7ffc07ba77a0[c]:"b") {0x1fde8f0:"", 0x1fdeb30:"ogus":<2>} . bsplits (0x6162f0[c]:"bogus", 0x7ffc07ba7790[c]:"bs") {0x1fdeb30:"", 0x1fde8f0:"ogu", 0x1fdcde0:"":<3>} . bsplits (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"o") {0x1fdcde0:"This is a b", 0x1fde8f0:"gus but reas", 0x1fdeb30:"nably l", 0x1fdee90:"ng string. Just l", 0x1fde910:"ng en", 0x1fddc40:"ugh t", 0x1fddc60:" cause s", 0x1fdce00:"me mall", 0x1fde8d0:"cing.":<9>} . bsplits (0x6162f0[c]:"bogus", 0x7ffc07ba7780[c]:"uo") {0x1fdea50:"b", 0x1fdeb70:"g", 0x1fdea30:"s":<3>} # failures: 0 TEST: bstream integrated test . bsbufflength (bs, 0) -> 1024 . bspeek () -> 0x1fdef90:"" . bsreadln ('?') -> 0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bsunread (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") . bspeek () -> 0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bsreadln ('?') -> 0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bsreadln ('.') -> 0x1fdef90:"This is a bogus but reasonably long string." . bsunread (0x1fdef90:"This is a bogus but reasonably long string.") . bspeek () -> 0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bsreadln ('.') -> 0x1fdef90:"This is a bogus but reasonably long string." . bssplitscb (' ') -> 0x1fdef90:"This|is|a|bogus|but|reasonably|long|string.||Just|long|enough|to|cause|some|mallocing." # failures: 0 TEST: int bninchr (const_bstring s1, int pos, const_bstring s2); . bninchr (NULL, 0, NULL) = -1 . bninchr (0x6162e0[c]:"", 0, NULL) = -1 . bninchr (NULL, 0, 0x6162e0[c]:"") = -1 . bninchr (0x6162f0[c]:"bogus", 3, 0x616310:[err:data=NULL]) = -1 . bninchr (0x616310:[err:data=NULL], 3, 0x6162f0[c]:"bogus") = -1 . bninchr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = -1 . bninchr (0x6162f0[c]:"bogus", 0, 0x6162e0[c]:"") = -1 . bninchr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = -1 . bninchr (0x6162f0[c]:"bogus", 1, 0x6162f0[c]:"bogus") = -1 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 3, 0x6162f0[c]:"bogus") = 4 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 3, 0x1fdef90:"bogus") = 4 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", -1, 0x6162f0[c]:"bogus") = -1 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 1000, 0x6162f0[c]:"bogus") = -1 . bninchr (0x616340[c]:"xxxxx", 0, 0x6162f0[c]:"bogus") = 0 . bninchr (0x616340[c]:"xxxxx", 1, 0x6162f0[c]:"bogus") = 1 . bninchr (0x6162e0[c]:"", 0, 0x6162f0[c]:"bogus") = -1 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0, 0x6162f0[c]:"bogus") = 0 . bninchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 10, 0x6162f0[c]:"bogus") = 15 # failures: 0 TEST: int bninchrr (const_bstring s1, int pos, const_bstring s2); . bninchrr (NULL, 0, NULL) = -1 . bninchrr (0x6162e0[c]:"", 0, NULL) = -1 . bninchrr (NULL, 0, 0x6162e0[c]:"") = -1 . bninchrr (0x6162e0[c]:"", 0, 0x6162e0[c]:"") = -1 . bninchrr (0x6162f0[c]:"bogus", 0, 0x6162e0[c]:"") = -1 . bninchrr (0x6162f0[c]:"bogus", 0, 0x616310:[err:data=NULL]) = -1 . bninchrr (0x616310:[err:data=NULL], 0, 0x6162f0[c]:"bogus") = -1 . bninchrr (0x6162f0[c]:"bogus", 0, 0x6162f0[c]:"bogus") = -1 . bninchrr (0x6162f0[c]:"bogus", 4, 0x6162f0[c]:"bogus") = -1 . bninchrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 10, 0x6162f0[c]:"bogus") = 9 . bninchrr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 10, 0x1fdef90:"bogus") = 9 . bninchrr (0x616340[c]:"xxxxx", 4, 0x6162f0[c]:"bogus") = 4 . bninchrr (0x6162e0[c]:"", 0, 0x6162f0[c]:"bogus") = -1 # failures: 0 TEST: int breplace (bstring b0, int pos, int len, const_bstring b1, unsigned char fill); . breplace (NULL, 0, 0, NULL, 3F) = -1 . breplace (NULL, 0, 0, 0x6162e0[c]:"", 3F) = -1 . breplace (0x616310:[err:data=NULL], 1, 3, 0x6162f0[c]:"bogus", 3F) = -1 . breplace (0x6162f0[c]:"bogus", 1, 3, 0x616310:[err:data=NULL], 3F) = -1 . breplace (0x1fdef90[p]:"", 0, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90[p]:"" . breplace (0x1fdef90:"", 0, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90:"" . breplace (0x1fdef90[p]:"", 5, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90[p]:"" . breplace (0x1fdef90:"", 5, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90:"?????" . breplace (0x1fdef90[p]:"", 5, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"" . breplace (0x1fdef90:"", 5, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"?????bogus" . breplace (0x1fdef90[p]:"bogus", 0, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 0, 0, 0x6162e0[c]:"", 3F) = 0x1fdef90:"bogus" . breplace (0x1fdef90[p]:"", 0, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"" . breplace (0x1fdef90:"", 0, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bogus" . breplace (0x1fdef90[p]:"bogus", 0, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 0, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bogusbogus" . breplace (0x1fdef90[p]:"bogus", 1, 3, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 1, 3, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bboguss" . breplace (0x1fdef90[p]:"bogus", 3, 8, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 3, 8, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bogbogus" . breplace (0x1fdef90[p]:"bogus", -1, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", -1, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bogus" . breplace (0x1fdef90[p]:"bogus", 2, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 2, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bobogusgus" . breplace (0x1fdef90[p]:"bogus", 6, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90[p]:"bogus" . breplace (0x1fdef90:"bogus", 6, 0, 0x6162f0[c]:"bogus", 3F) = 0x1fdef90:"bogus?bogus" . breplace (0x6162f0[c]:"bogus", 6, 0, NULL, 3F) = -1 # failures: 0 TEST: int bassign (bstring b0, const_bstring b1); . bassign (NULL, NULL) = -1 . bassign (NULL, 0x6162e0[c]:"") = -1 . bassign (0x6162e0[c]:"", NULL) = -1 . bassign (0x616310:[err:data=NULL], 0x6162e0[c]:"") = -1 . bassign (0x616320:[err:slen=-5<0], 0x6162e0[c]:"") = -1 . bassign (0x6162e0[c]:"", 0x616310:[err:data=NULL]) = -1 . bassign (0x6162e0[c]:"", 0x616320:[err:slen=-5<0]) = -1 . bassign (0x1fdef90[p]:"", 0x6162e0[c]:"") = 0x1fdef90[p]:"" . bassign (0x1fdef90:"", 0x6162e0[c]:"") = 0x1fdef90:"" . bassign (0x1fdef90[p]:"", 0x6162f0[c]:"bogus") = 0x1fdef90[p]:"" . bassign (0x1fdef90:"", 0x6162f0[c]:"bogus") = 0x1fdef90:"bogus" . bassign (0x1fdef90[p]:"bogus", 0x6162e0[c]:"") = 0x1fdef90[p]:"bogus" . bassign (0x1fdef90:"bogus", 0x6162e0[c]:"") = 0x1fdef90:"" . bassign (0x1fdef90[p]:"bogus", 0x6162f0[c]:"bogus") = 0x1fdef90[p]:"bogus" . bassign (0x1fdef90:"bogus", 0x6162f0[c]:"bogus") = 0x1fdef90:"bogus" # failures: 0 TEST: int bstrchr (const_bstring s1, int c); . bstrchr (NULL, 0) = -1 . bstrchr (0x616310:[err:data=NULL], 98) = -1 . bstrchr (0x616320:[err:slen=-5<0], 115) = -1 . bstrchr (0x6162e0[c]:"", 0) = -1 . bstrchr (0x6162f0[c]:"bogus", 0) = -1 . bstrchr (0x6162f0[c]:"bogus", 98) = 0 . bstrchr (0x6162f0[c]:"bogus", 115) = 4 . bstrchr (0x6162f0[c]:"bogus", 113) = -1 . bstrchr (0x616340[c]:"xxxxx", 0) = -1 . bstrchr (0x616340[c]:"xxxxx", 98) = -1 . bstrchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 105) = 2 TEST: int bstrrchr (const_bstring s1, int c); . bstrrchr (NULL, 0) = -1 . bstrrchr (0x616310:[err:data=NULL], 98) = -1 . bstrrchr (0x616320:[err:slen=-5<0], 115) = -1 . bstrrchr (0x6162e0[c]:"", 0) = -1 . bstrrchr (0x6162f0[c]:"bogus", 0) = -1 . bstrrchr (0x6162f0[c]:"bogus", 98) = 0 . bstrrchr (0x6162f0[c]:"bogus", 115) = 4 . bstrrchr (0x6162f0[c]:"bogus", 113) = -1 . bstrrchr (0x616340[c]:"xxxxx", 0) = -1 . bstrrchr (0x616340[c]:"xxxxx", 98) = -1 . bstrrchr (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 105) = 82 TEST: int bstrchrp (const_bstring s1, int c, int pos); . bstrchrp (NULL, 0, 0) = -1 . bstrchrp (0x616310:[err:data=NULL], 98, 0) = -1 . bstrchrp (0x616320:[err:slen=-5<0], 115, 0) = -1 . bstrchrp (0x6162f0[c]:"bogus", 98, -1) = -1 . bstrchrp (0x6162f0[c]:"bogus", 98, 5) = -1 . bstrchrp (0x6162e0[c]:"", 0, 0) = -1 . bstrchrp (0x6162f0[c]:"bogus", 0, 0) = -1 . bstrchrp (0x6162f0[c]:"bogus", 98, 0) = 0 . bstrchrp (0x6162f0[c]:"bogus", 98, 1) = -1 . bstrchrp (0x6162f0[c]:"bogus", 115, 0) = 4 . bstrchrp (0x6162f0[c]:"bogus", 113, 0) = -1 TEST: int bstrrchrp (const_bstring s1, int c, int pos); . bstrrchrp (NULL, 0, 0) = -1 . bstrrchrp (0x616310:[err:data=NULL], 98, 0) = -1 . bstrrchrp (0x616320:[err:slen=-5<0], 115, 0) = -1 . bstrrchrp (0x6162f0[c]:"bogus", 98, -1) = -1 . bstrrchrp (0x6162f0[c]:"bogus", 98, 5) = -1 . bstrrchrp (0x6162e0[c]:"", 0, 0) = -1 . bstrrchrp (0x6162f0[c]:"bogus", 0, 0) = -1 . bstrrchrp (0x6162f0[c]:"bogus", 98, 0) = 0 . bstrrchrp (0x6162f0[c]:"bogus", 98, 4) = 0 . bstrrchrp (0x6162f0[c]:"bogus", 115, 4) = 4 . bstrrchrp (0x6162f0[c]:"bogus", 115, 0) = -1 # failures: 0 TEST: int bcatcstr (bstring b0, const char * s); . bcatcstr (NULL, (nil)) = -1 . bcatcstr (NULL, 0x4113b0) = -1 . bcatcstr (0x1fdef90[p]:"", (nil)) = 0x1fdef90[p]:"" . bcatcstr (0x1fdef90:"", (nil)) = 0x1fdef90:"" . bcatcstr (0x616310:[err:data=NULL], 0x41156c) = -1 . bcatcstr (0x616320:[err:slen=-5<0], 0x41156c) = -1 . bcatcstr (0x1fdef90[p]:"", 0x4113b0) = 0x1fdef90[p]:"" . bcatcstr (0x1fdef90:"", 0x4113b0) = 0x1fdef90:"" . bcatcstr (0x1fdef90[p]:"", 0x41156c) = 0x1fdef90[p]:"" . bcatcstr (0x1fdef90:"", 0x41156c) = 0x1fdef90:"bogus" . bcatcstr (0x1fdef90[p]:"bogus", 0x4113b0) = 0x1fdef90[p]:"bogus" . bcatcstr (0x1fdef90:"bogus", 0x4113b0) = 0x1fdef90:"bogus" . bcatcstr (0x1fdef90[p]:"bogus", 0x41156c) = 0x1fdef90[p]:"bogus" . bcatcstr (0x1fdef90:"bogus", 0x41156c) = 0x1fdef90:"bogusbogus" # failures: 0 TEST: int bcatblk (bstring b0, const char * s); . bcatblk (NULL, (nil), 0) = -1 . bcatblk (NULL, 0x4113b0, 0) = -1 . bcatblk (0x1fdef90[p]:"", (nil)) = 0x1fdef90[p]:"" . bcatblk (0x1fdef90:"", (nil)) = 0x1fdef90:"" . bcatblk (0x1fdef90[p]:"", (nil)) = 0x1fdef90[p]:"" . bcatblk (0x1fdef90:"", (nil)) = 0x1fdef90:"" . bcatblk (0x616310:[err:data=NULL], (nil), 0) = -1 . bcatblk (0x616320:[err:slen=-5<0], (nil), 0) = -1 . bcatblk (0x1fdef90[p]:"", 0x4113b0) = 0x1fdef90[p]:"" . bcatblk (0x1fdef90:"", 0x4113b0) = 0x1fdef90:"" . bcatblk (0x1fdef90[p]:"", 0x4113b0) = 0x1fdef90[p]:"" . bcatblk (0x1fdef90:"", 0x4113b0) = 0x1fdef90:"" . bcatblk (0x1fdef90[p]:"", 0x41156c) = 0x1fdef90[p]:"" . bcatblk (0x1fdef90:"", 0x41156c) = 0x1fdef90:"bogus" . bcatblk (0x1fdef90[p]:"bogus", 0x4113b0) = 0x1fdef90[p]:"bogus" . bcatblk (0x1fdef90:"bogus", 0x4113b0) = 0x1fdef90:"bogus" . bcatblk (0x1fdef90[p]:"bogus", 0x41156c) = 0x1fdef90[p]:"bogus" . bcatblk (0x1fdef90:"bogus", 0x41156c) = 0x1fdef90:"bogusbogus" . bcatblk (0x1fdef90[p]:"bogus", 0x41156c) = 0x1fdef90[p]:"bogus" . bcatblk (0x1fdef90:"bogus", 0x41156c) = 0x1fdef90:"bogus" # failures: 0 TEST: int bfindreplace (bstring b, const_bstring f, const_bstring r, int pos); . bfindreplace (NULL, NULL, NULL, 0) = -1 . bfindreplace (0x6162f0[c]:"bogus", NULL, 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"s", NULL, 0) = -1 . bfindreplace (0x616310:[err:data=NULL], 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x616320:[err:slen=-5<0], 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"funny", 0) = -1 . bfindreplace (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"funny", 0) -> 0x1fdef90:"This is a funny but reasonably long string. Just long enough to cause some mallocing." . bfindreplace (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"Thiweird iweird a boguweird but reaweirdonably long weirdtring. Juweirdt long enough to cauweirde weirdome mallocing." . bfindreplace (0x1fdef90[p]:"bogus", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x1fdef90:"bogus", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"boguweird" . bfindreplace (0x1fdef90[p]:"bogus", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplace (0x1fdef90:"bogus", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"bogus" . bfindreplace (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 27) = -1 . bfindreplace (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 27) -> 0x1fdef90:"This is a bogus but reasonably long weirdtring. Juweirdt long enough to cauweirde weirdome mallocing." . bfindreplace (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"long", 0x7ffc07ba77b0[c]:"big", 0) = -1 . bfindreplace (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"long", 0x7ffc07ba77b0[c]:"big", 0) -> 0x1fdef90:"This is a bogus but reasonably big string. Just big enough to cause some mallocing." . bfindreplace (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba7760[c]:"LONG", 0x7ffc07ba77b0[c]:"big", 0) = -1 . bfindreplace (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba7760[c]:"LONG", 0x7ffc07ba77b0[c]:"big", 0) -> 0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bfindreplace (0x1fdef90[p]:"sstsst", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) = -1 . bfindreplace (0x1fdef90:"sstsst", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) -> 0x1fdef90:"sssstsssst" . bfindreplace (0x1fdef90[p]:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) = -1 . bfindreplace (0x1fdef90:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) -> 0x1fdef90:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx" TEST: int bfindreplacecaseless (bstring b, const_bstring f, const_bstring r, int pos); . bfindreplacecaseless (NULL, NULL, NULL, 0) = -1 . bfindreplacecaseless (0x6162f0[c]:"bogus", NULL, 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"s", NULL, 0) = -1 . bfindreplacecaseless (0x616310:[err:data=NULL], 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x616320:[err:slen=-5<0], 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"funny", 0) = -1 . bfindreplacecaseless (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"funny", 0) -> 0x1fdef90:"This is a funny but reasonably long string. Just long enough to cause some mallocing." . bfindreplacecaseless (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"Thiweird iweird a boguweird but reaweirdonably long weirdtring. Juweirdt long enough to cauweirde weirdome mallocing." . bfindreplacecaseless (0x1fdef90[p]:"bogus", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x1fdef90:"bogus", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"boguweird" . bfindreplacecaseless (0x1fdef90[p]:"bogus", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77e0[c]:"weird", 0) = -1 . bfindreplacecaseless (0x1fdef90:"bogus", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77e0[c]:"weird", 0) -> 0x1fdef90:"boguweird" . bfindreplacecaseless (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 27) = -1 . bfindreplacecaseless (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77e0[c]:"weird", 27) -> 0x1fdef90:"This is a bogus but reasonably long weirdtring. Juweirdt long enough to cauweirde weirdome mallocing." . bfindreplacecaseless (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"long", 0x7ffc07ba77b0[c]:"big", 0) = -1 . bfindreplacecaseless (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba77c0[c]:"long", 0x7ffc07ba77b0[c]:"big", 0) -> 0x1fdef90:"This is a bogus but reasonably big string. Just big enough to cause some mallocing." . bfindreplacecaseless (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba7760[c]:"LONG", 0x7ffc07ba77b0[c]:"big", 0) = -1 . bfindreplacecaseless (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 0x7ffc07ba7760[c]:"LONG", 0x7ffc07ba77b0[c]:"big", 0) -> 0x1fdef90:"This is a bogus but reasonably big string. Just big enough to cause some mallocing." . bfindreplacecaseless (0x1fdef90[p]:"sstsst", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) = -1 . bfindreplacecaseless (0x1fdef90:"sstsst", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) -> 0x1fdef90:"sssstsssst" . bfindreplacecaseless (0x1fdef90[p]:"sstsst", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77a0[c]:"ss", 0) = -1 . bfindreplacecaseless (0x1fdef90:"sstsst", 0x7ffc07ba7770[c]:"S", 0x7ffc07ba77a0[c]:"ss", 0) -> 0x1fdef90:"sssstsssst" . bfindreplacecaseless (0x1fdef90[p]:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) = -1 . bfindreplacecaseless (0x1fdef90:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx", 0x7ffc07ba77d0[c]:"s", 0x7ffc07ba77a0[c]:"ss", 0) -> 0x1fdef90:"xxssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssxx" # failures: 0 TEST: int biseqcstr (const_bstring b, const char * s); . biseqcstr (NULL, (nil):<(null)>) = -1 . biseqcstr (0x6162e0[c]:"", (nil):<(null)>) = -1 . biseqcstr (NULL, 0x4113b0:<>) = -1 . biseqcstr (0x616310:[err:data=NULL], 0x4113b0:<>) = -1 . biseqcstr (0x616320:[err:slen=-5<0], 0x41156c:) = -1 . biseqcstr (0x6162e0[c]:"", 0x4113b0:<>) = 1 . biseqcstr (0x6162f0[c]:"bogus", 0x41156c:) = 1 . biseqcstr (0x6162e0[c]:"", 0x41156c:) = 0 . biseqcstr (0x6162f0[c]:"bogus", 0x4113b0:<>) = 0 . biseqcstr (0x1fdef90:"bpgus", 0x41156c:) = 0 TEST: int biseqcstrcaseless (const_bstring b, const char * s); . biseqcstrcaseless (NULL, (nil):<(null)>) = -1 . biseqcstrcaseless (0x6162e0[c]:"", (nil):<(null)>) = -1 . biseqcstrcaseless (NULL, 0x4113b0:<>) = -1 . biseqcstrcaseless (0x616310:[err:data=NULL], 0x4113b0:<>) = -1 . biseqcstrcaseless (0x616320:[err:slen=-5<0], 0x41156c:) = -1 . biseqcstrcaseless (0x6162e0[c]:"", 0x4113b0:<>) = 1 . biseqcstrcaseless (0x6162f0[c]:"bogus", 0x41156c:) = 1 . biseqcstrcaseless (0x6162f0[c]:"bogus", 0x411c98:) = 1 . biseqcstrcaseless (0x6162e0[c]:"", 0x41156c:) = 0 . biseqcstrcaseless (0x6162f0[c]:"bogus", 0x4113b0:<>) = 0 . biseqcstrcaseless (0x1fdef90:"bpgus", 0x41156c:) = 0 TEST: int btoupper (bstring b); . btoupper (NULL) = -1 . btoupper (0x616310:[err:data=NULL]) = -1 . btoupper (0x616320:[err:slen=-5<0]) = -1 . btoupper (0x1fdef90[p]:"") = 0x1fdef90[p]:"" . btoupper (0x1fdef90:"") = 0x1fdef90:"" . btoupper (0x1fdef90[p]:"bogus") = 0x1fdef90[p]:"bogus" . btoupper (0x1fdef90:"bogus") = 0x1fdef90:"BOGUS" . btoupper (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . btoupper (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdef90:"THIS IS A BOGUS BUT REASONABLY LONG STRING. JUST LONG ENOUGH TO CAUSE SOME MALLOCING." TEST: int btolower (bstring b); . btolower (NULL) = -1 . btolower (0x616310:[err:data=NULL]) = -1 . btolower (0x616320:[err:slen=-5<0]) = -1 . btolower (0x1fdef90[p]:"") = 0x1fdef90[p]:"" . btolower (0x1fdef90:"") = 0x1fdef90:"" . btolower (0x1fdef90[p]:"bogus") = 0x1fdef90[p]:"bogus" . btolower (0x1fdef90:"bogus") = 0x1fdef90:"bogus" . btolower (0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdef90[p]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . btolower (0x1fdef90:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0x1fdef90:"this is a bogus but reasonably long string. just long enough to cause some mallocing." TEST: int bstricmp (const_bstring b0, const_bstring b1); . bstricmp (NULL, NULL) = -32768 . bstricmp (0x6162e0[c]:"", NULL) = -32768 . bstricmp (NULL, 0x6162e0[c]:"") = -32768 . bstricmp (0x6162e0[c]:"", 0x616310:[err:data=NULL]) = -32768 . bstricmp (0x616310:[err:data=NULL], 0x6162e0[c]:"") = -32768 . bstricmp (0x6162f0[c]:"bogus", 0x616320:[err:slen=-5<0]) = -32768 . bstricmp (0x616320:[err:slen=-5<0], 0x6162f0[c]:"bogus") = -32768 . bstricmp (0x6162e0[c]:"", 0x6162e0[c]:"") = 0 . bstricmp (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUs") = 0 . bstricmp (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"bOgUR") = 1 . bstricmp (0x6162f0[c]:"bogus", 0x7ffc07ba77c0[c]:"bOgUt") = -1 . bstricmp (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUs") = -256 . bstricmp (0x7ffc07ba77e0[c]:"bOgUs", 0x6162f0[c]:"bogus") = 256 TEST: int bstrnicmp (const_bstring b0, const_bstring b1); . bstrnicmp (NULL, NULL, 0) = -32768 . bstrnicmp (0x6162e0[c]:"", NULL, 0) = -32768 . bstrnicmp (NULL, 0x6162e0[c]:"", 0) = -32768 . bstrnicmp (0x6162e0[c]:"", 0x616310:[err:data=NULL], 0) = -32768 . bstrnicmp (0x616310:[err:data=NULL], 0x6162e0[c]:"", 0) = -32768 . bstrnicmp (0x6162f0[c]:"bogus", 0x616320:[err:slen=-5<0], 5) = -32768 . bstrnicmp (0x616320:[err:slen=-5<0], 0x6162f0[c]:"bogus", 5) = -32768 . bstrnicmp (0x6162e0[c]:"", 0x6162e0[c]:"", 0) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 0) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 5) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 4) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 6) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUR", 5) = 33 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUR", 4) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUR", 6) = 33 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"bOgUt", 5) = -1 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"bOgUt", 4) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"bOgUt", 6) = -1 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 5) = 0 . bstrnicmp (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs", 6) = -256 . bstrnicmp (0x7ffc07ba77f0[c]:"bOgUs", 0x6162f0[c]:"bogus", 6) = 256 TEST: int biseqcaseless (const_bstring b0, const_bstring b1); . biseqcaseless (NULL, NULL) = -1 . biseqcaseless (0x6162e0[c]:"", NULL) = -1 . biseqcaseless (NULL, 0x6162e0[c]:"") = -1 . biseqcaseless (0x6162e0[c]:"", 0x616310:[err:data=NULL]) = -1 . biseqcaseless (0x616310:[err:data=NULL], 0x6162e0[c]:"") = -1 . biseqcaseless (0x6162f0[c]:"bogus", 0x616320:[err:slen=-5<0]) = -1 . biseqcaseless (0x616320:[err:slen=-5<0], 0x6162f0[c]:"bogus") = -1 . biseqcaseless (0x6162e0[c]:"", 0x6162e0[c]:"") = 1 . biseqcaseless (0x6162f0[c]:"bogus", 0x7ffc07ba77f0[c]:"bOgUs") = 1 . biseqcaseless (0x6162f0[c]:"bogus", 0x7ffc07ba77e0[c]:"bOgUR") = 0 . biseqcaseless (0x6162f0[c]:"bogus", 0x7ffc07ba77d0[c]:"bOgUt") = 0 TEST: bgets/breads test TEST: trim functions . bltrim (0x7ffc07ba77f0[c]:" bogus string ") = 0x1fdeed0:"bogus string " . brtrim (0x7ffc07ba77f0[c]:" bogus string ") = 0x1fdeed0:" bogus string" . btrim (0x7ffc07ba77f0[c]:" bogus string ") = 0x1fdeed0:"bogus string" . bltrim (0x7ffc07ba77e0[c]:"bogus string ") = 0x1fdeed0:"bogus string " . brtrim (0x7ffc07ba77e0[c]:"bogus string ") = 0x1fdeed0:"bogus string" . btrim (0x7ffc07ba77e0[c]:"bogus string ") = 0x1fdeed0:"bogus string" . bltrim (0x7ffc07ba77d0[c]:" bogus string") = 0x1fdeed0:"bogus string" . brtrim (0x7ffc07ba77d0[c]:" bogus string") = 0x1fdeed0:" bogus string" . btrim (0x7ffc07ba77d0[c]:" bogus string") = 0x1fdeed0:"bogus string" . bltrim (0x7ffc07ba77c0[c]:"bogus string") = 0x1fdeed0:"bogus string" . brtrim (0x7ffc07ba77c0[c]:"bogus string") = 0x1fdeed0:"bogus string" . btrim (0x7ffc07ba77c0[c]:"bogus string") = 0x1fdeed0:"bogus string" . bltrim (0x7ffc07ba77b0[c]:" ") = 0x1fdeed0:"" . brtrim (0x7ffc07ba77b0[c]:" ") = 0x1fdeed0:"" . btrim (0x7ffc07ba77b0[c]:" ") = 0x1fdeed0:"" . bltrim (0x7ffc07ba77a0[c]:"") = 0x1fdeed0:"" . brtrim (0x7ffc07ba77a0[c]:"") = 0x1fdeed0:"" . btrim (0x7ffc07ba77a0[c]:"") = 0x1fdeed0:"" TEST: int bassignmidstr (bstring b0, const_bstring b1, int left, int len); . bassignmidstr (NULL, NULL, 0, 1) = -1 . bassignmidstr (NULL, 0x6162e0[c]:"", 0, 1) = -1 . bassignmidstr (0x6162e0[c]:"", NULL, 0, 1) = -1 . bassignmidstr (0x616310:[err:data=NULL], 0x6162e0[c]:"", 0, 1) = -1 . bassignmidstr (0x616320:[err:slen=-5<0], 0x6162e0[c]:"", 0, 1) = -1 . bassignmidstr (0x6162e0[c]:"", 0x616310:[err:data=NULL], 0, 1) = -1 . bassignmidstr (0x6162e0[c]:"", 0x616320:[err:slen=-5<0], 0, 1) = -1 . bassignmidstr (0x1fdeed0[p]:"", 0x6162e0[c]:"", 0, 1) = 0x1fdeed0[p]:"" . bassignmidstr (0x1fdeed0:"", 0x6162e0[c]:"", 0, 1) = 0x1fdeed0:"" . bassignmidstr (0x1fdeed0[p]:"", 0x6162f0[c]:"bogus", 1, 3) = 0x1fdeed0[p]:"" . bassignmidstr (0x1fdeed0:"", 0x6162f0[c]:"bogus", 1, 3) = 0x1fdeed0:"ogu" . bassignmidstr (0x1fdeed0[p]:"bogus", 0x6162e0[c]:"", 0, 1) = 0x1fdeed0[p]:"bogus" . bassignmidstr (0x1fdeed0:"bogus", 0x6162e0[c]:"", 0, 1) = 0x1fdeed0:"" . bassignmidstr (0x1fdeed0[p]:"bogus", 0x6162f0[c]:"bogus", 1, 3) = 0x1fdeed0[p]:"bogus" . bassignmidstr (0x1fdeed0:"bogus", 0x6162f0[c]:"bogus", 1, 3) = 0x1fdeed0:"ogu" . bassignmidstr (0x1fdeed0[p]:"bogus", 0x6162f0[c]:"bogus", -1, 4) = 0x1fdeed0[p]:"bogus" . bassignmidstr (0x1fdeed0:"bogus", 0x6162f0[c]:"bogus", -1, 4) = 0x1fdeed0:"bog" . bassignmidstr (0x1fdeed0[p]:"bogus", 0x6162f0[c]:"bogus", 1, 9) = 0x1fdeed0[p]:"bogus" . bassignmidstr (0x1fdeed0:"bogus", 0x6162f0[c]:"bogus", 1, 9) = 0x1fdeed0:"ogus" . bassignmidstr (0x1fdeed0[p]:"bogus", 0x6162f0[c]:"bogus", 9, 1) = 0x1fdeed0[p]:"bogus" . bassignmidstr (0x1fdeed0:"bogus", 0x6162f0[c]:"bogus", 9, 1) = 0x1fdeed0:"" # failures: 0 TEST: int bmid2tbstr (struct tagbstring &t, const_bstring b1, int left, int len); . bmid2tbstr (NULL, 0, 1) = 0x1fdeed0:"" . bmid2tbstr (0x6162e0[c]:"", 0, 1) = 0x1fdee70:"" . bmid2tbstr (NULL, 0, 1) = 0x1fdee70:"" . bmid2tbstr (0x6162e0[c]:"", 0, 1) = 0x1fdeed0:"" . bmid2tbstr (0x6162e0[c]:"", 0, 1) = 0x1fdee70:"" . bmid2tbstr (0x616310:[err:data=NULL], 0, 1) = 0x1fdee70:"" . bmid2tbstr (0x616320:[err:slen=-5<0], 0, 1) = 0x1fdee70:"" . bmid2tbstr (0x6162e0[c]:"", 0, 1) = 0x1fdeed0:"" . bmid2tbstr (0x6162f0[c]:"bogus", 1, 3) = 0x1fdee70:"ogu" . bmid2tbstr (0x6162e0[c]:"", 0, 1) = 0x1fdeed0:"" . bmid2tbstr (0x6162f0[c]:"bogus", 1, 3) = 0x1fdee70:"ogu" . bmid2tbstr (0x6162f0[c]:"bogus", -1, 4) = 0x1fdeed0:"bog" . bmid2tbstr (0x6162f0[c]:"bogus", 1, 9) = 0x1fdee70:"ogus" . bmid2tbstr (0x6162f0[c]:"bogus", 9, 1) = 0x1fdeed0:"" # failures: 0 TEST: int btrunc (bstring b, int n); . btrunc (0x6162e0[c]:"", 10) = 0x1fdeed0:"" . btrunc (0x6162e0[c]:"", 0) = 0x1fdeed0:"" . btrunc (0x6162e0[c]:"", -1) = 0x1fdeed0:"" . btrunc (0x6162f0[c]:"bogus", 10) = 0x1fdeed0:"bogus" . btrunc (0x6162f0[c]:"bogus", 3) = 0x1fdeed0:"bog" . btrunc (0x6162f0[c]:"bogus", 0) = 0x1fdeed0:"" . btrunc (0x6162f0[c]:"bogus", -1) = 0x1fdeed0:"bogus" # failures: 0 TEST: int btfromblk*trim (struct tagbstring t, void * s, int l); . btfromblkltrimws ("", "", 0) . btfromblkrtrimws ("", "", 0) . btfromblktrimws ("", "", 0) . btfromblkltrimws ("", " ", 4) . btfromblkrtrimws ("", " ", 4) . btfromblktrimws ("", " ", 4) . btfromblkltrimws ("abc", " abc", 4) . btfromblkrtrimws (" abc", " abc", 4) . btfromblktrimws ("abc", " abc", 4) . btfromblkltrimws ("abc ", "abc ", 4) . btfromblkrtrimws ("abc", "abc ", 4) . btfromblktrimws ("abc", "abc ", 4) . btfromblkltrimws ("abc ", " abc ", 5) . btfromblkrtrimws (" abc", " abc ", 5) . btfromblktrimws ("abc", " abc ", 5) . btfromblkltrimws ("abc", "abc", 3) . btfromblkrtrimws ("abc", "abc", 3) . btfromblktrimws ("abc", "abc", 3) # failures: 0 TEST: int bassigncstr (bstring a, char * str); . bassigncstr (b = 0x1fdeed0:"", NULL) = -1; b -> 0x1fdeed0:"" . bassigncstr (b = 0x1fdeed0:"", "") = 0; b -> 0x1fdeed0:"" . bassigncstr (b = 0x1fdeed0[p]:"xxxxx", "") = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassigncstr (a = 0x6162f0[c]:"bogus", "") = -1; a -> 0x6162f0[c]:"bogus" . bassigncstr (b = 0x1fdeed0:"", "bogus") = 0; b -> 0x1fdeed0:"bogus" . bassigncstr (b = 0x1fdeed0[p]:"xxxxx", "bogus") = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassigncstr (a = 0x6162f0[c]:"bogus", "bogus") = -1; a -> 0x6162f0[c]:"bogus" . bassigncstr (b = 0x1fdeed0:"", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0; b -> 0x1fdeed0:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bassigncstr (b = 0x1fdeed0[p]:"xxxxx", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassigncstr (a = 0x6162f0[c]:"bogus", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = -1; a -> 0x6162f0[c]:"bogus" # failures: 0 TEST: int bassignblk (bstring a, const void * s, int len); . bassignblk (b = 0x1fdeed0:"", NULL, 1) = -1; b -> 0x1fdeed0:"" . bassignblk (b = 0x1fdeed0:"", "", 0) = 0; b -> 0x1fdeed0:"" . bassignblk (b = 0x1fdeed0[p]:"xxxxx", "", 0) = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassignblk (a = 0x6162f0[c]:"bogus", "", 0) = -1; a -> 0x6162f0[c]:"bogus" . bassignblk (b = 0x1fdeed0:"", "bogus", 5) = 0; b -> 0x1fdeed0:"bogus" . bassignblk (b = 0x1fdeed0[p]:"xxxxx", "bogus", 5) = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassignblk (a = 0x6162f0[c]:"bogus", "bogus", 5) = -1; a -> 0x6162f0[c]:"bogus" . bassignblk (b = 0x1fdeed0:"", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 86) = 0; b -> 0x1fdeed0:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." . bassignblk (b = 0x1fdeed0[p]:"xxxxx", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 86) = -1; b -> 0x1fdeed0[p]:"xxxxx" . bassignblk (a = 0x6162f0[c]:"bogus", "This is a bogus but reasonably long string. Just long enough to cause some mallocing.", 86) = -1; a -> 0x6162f0[c]:"bogus" # failures: 0 TEST: int bvcformata (bstring b, int count, const char * fmt, va_list arg); . bvcformata (NULL, 8, "[%d]", ...) -> -1, NULL (NULL) . bvcformata (0x6162f0[c]:"bogus", 8, "[%d]", ...) -> -1, 0x6162f0[c]:"bogus" (NULL) . bvcformata (0x616310:[err:data=NULL], 8, "[%d]", ...) -> -1, 0x616310:[err:data=NULL] (NULL) . bvcformata (0x616320:[err:slen=-5<0], 8, "[%d]", ...) -> -1, 0x616320:[err:slen=-5<0] (NULL) . bvcformata (0x616330:[err:mlen=2 -1, 0x616330:[err:mlen=2 0, 0x1fdeed0:"bogus" (0x6162f0[c]:"bogus") . bvcformata (0x1fdeed0:"bogus", 6, "%s", ...) -> 0, 0x1fdeed0:"bogus" (0x6162f0[c]:"bogus") . bvcformata (0x1fdeed0:"bogus", 4, "%s", ...) -> -8, 0x1fdeed0:"" (NULL) TEST: bvformata (int &ret, bstring b, const char * fmt, lastarg); . bvformata (&, NULL, "[%d]", ...) -> -1, NULL (NULL) . bvformata (&, 0x6162f0[c]:"bogus", "[%d]", ...) -> -1, 0x6162f0[c]:"bogus" (NULL) . bvformata (&, 0x616310:[err:data=NULL], "[%d]", ...) -> -1, 0x616310:[err:data=NULL] (NULL) . bvformata (&, 0x616320:[err:slen=-5<0], "[%d]", ...) -> -1, 0x616320:[err:slen=-5<0] (NULL) . bvformata (&, 0x616330:[err:mlen=2 -1, 0x616330:[err:mlen=2 0, 0x1fdeed0:"bogus" (0x6162f0[c]:"bogus") . bvformata (&, 0x1fdeed0:"bogus", "%s", ...) -> 0, 0x1fdeed0:"This is a bogus but reasonably long string. Just long enough to cause some mallocing." (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.") . bvformata (&, 0x1fdeed0:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", "%s%s%s%s%s%s%s%s", ...) -> 0, 0x1fdeed0:"WaterlooWaterlooWaterlooWaterlooWaterlooWaterlooWaterlooWaterloo" (0x1fdeb70:"WaterlooWaterlooWaterlooWaterlooWaterlooWaterlooWaterlooWaterloo") # failures: 0 TEST: int biseqblk (const_bstring b, const void * blk, int len); . biseqblk (NULL, NULL) = -1 . biseqblk (0x6162e0[c]:"", NULL) = -1 . biseqblk (NULL, cstr[0x4113b0] -> "") = -1 . biseqblk (0x6162f0[c]:"bogus", NULL) = -1 . biseqblk (NULL, cstr[0x41156c] -> "bogus") = -1 . biseqblk (0x616310:[err:data=NULL], NULL) = -1 . biseqblk (0x616320:[err:slen=-5<0], cstr[0x41156c] -> "bogus") = -1 . biseqblk (0x6162f0[c]:"bogus", cstr[0x41156c] -> "bogus") = -1 . biseqblk (0x616320:[err:slen=-5<0], cstr[0x41156c] -> "bogus") = -1 . biseqblk (0x6162e0[c]:"", cstr[0x4113b0] -> "") = 1 . biseqblk (0x6162f0[c]:"bogus", cstr[0x4113b0] -> "") = 0 . biseqblk (0x6162e0[c]:"", cstr[0x41156c] -> "bogus") = 0 . biseqblk (0x6162f0[c]:"bogus", cstr[0x41156c] -> "bogus") = 1 . biseqblk (0x1fdeed0:"bpgus", cstr[0x41156c] -> "bogus") = 0 . biseqblk (0x6162f0[c]:"bogus", cstr[0x411578] -> "This is a bogus but reasonably long string. Just long enough to cause some mallocing.") = 0 . biseqblk (0x616300[c]:"This is a bogus but reasonably long string. Just long enough to cause some mallocing.", cstr[0x41156c] -> "bogus") = 0 # failures: 0 TEST: int biseqcaselessblk (const_bstring b, const void * blk, int len); . biseqcaselessblk (NULL, NULL, 0) = -1 . biseqcaselessblk (0x6162e0[c]:"", NULL, 0) = -1 . biseqcaselessblk (NULL, cstr[0x4113b0] -> "", 0) = -1 . biseqcaselessblk (0x6162e0[c]:"", NULL, 0) = -1 . biseqcaselessblk (0x616310:[err:data=NULL], cstr[0x4113b0] -> "", 4) = -1 . biseqcaselessblk (0x6162f0[c]:"bogus", cstr[0x41156c] -> "bogus", -5) = -1 . biseqcaselessblk (0x616320:[err:slen=-5<0], cstr[0x41156c] -> "bogus", -5) = -1 . biseqcaselessblk (0x6162e0[c]:"", cstr[0x4113b0] -> "", 0) = 1 . biseqcaselessblk (0x6162f0[c]:"bogus", cstr[0x413361] -> "bOgUs", 5) = 1 . biseqcaselessblk (0x6162f0[c]:"bogus", cstr[0x413367] -> "bOgUR", 5) = 0 . biseqcaselessblk (0x6162f0[c]:"bogus", cstr[0x41336d] -> "bOgUt", 5) = 0 # test failures: 0 + gcc -c -Wall /builddir/build/BUILD/bstrlib-1.0.0/testaux.c + gcc -g -Wall -o testaux -L/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 -lbstr testaux.o -I/builddir/build/BUILD/usr/include/bstrlib/ -Wl,-rpath=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 + ./testaux Direct case testing of bstraux functions TEST: struct bwriteStream functions. # failures: 0 TEST: bTail and bHead functions. # failures: 0 TEST: bSetChar function. # failures: 0 TEST: bSetCstrChar function. # failures: 0 TEST: bFill function. # failures: 0 TEST: bReplicate function. # failures: 0 TEST: bReverse function. # failures: 0 TEST: bInsertChrs function. # failures: 0 TEST: bJustify functions. # failures: 0 TEST: NetStr functions. # failures: 0 TEST: Base 64 codec. # failures: 0 TEST: UU codec. # failures: 0 TEST: Y codec. # failures: 0 TEST: bsFromBstr. # failures: 0 TEST: bSecureInput, bSecureDestroy. # failures: 0 TEST: bSGMLEncode. # failures: 0 # test failures: 0 + g++ -c -Wall /builddir/build/BUILD/bstrlib-1.0.0/test.cpp + g++ -g -Wall -o cxxtest -L/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 -lbstrc++ -lbstr test.o -I/builddir/build/BUILD/usr/include/bstrlib/ -Wl,-rpath=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/lib64 + ./cxxtest Direct case testing of CPP core functions TEST: CBString constructor CBString c; CBString c("test"); CBString c(25, "test"); CBString c('t'); CBString c('\0'); CBString c(bstr["test"]); CBString c(CBstr["test"]); CBString c('x',5); CBString c("123456",4); # failures: 0 TEST: CBString = operator c = 'x'; c = (unsigned char)'x'; c = "test"; c = CBStr["test"]; c = tbstr["test"]; # failures: 0 TEST: CBString += operator c += 'x'; c += (unsigned char)'x'; c += "test"; c += CBStr["test"]; c += tbstr["test"]; # failures: 0 TEST: CBString + operator c + 'x'; c + (unsigned char)'x'; c + "test"; c + (unsigned char *) "test"; c + CBStr["test"]; c + tbstr["test"]; TEST: + CBString operator 'x' + c; (unsigned char)'y' + c; "test" + c; (unsigned char *) "test" + c; tbstr["extra"] + c; # failures: 0 TEST: CBString == operator c == d; c == "test"; c == (unsigned char *) "test"; # failures: 0 TEST: CBString != operator c != d; c != "test"; c != (unsigned char *) "test"; # failures: 0 TEST: CBString <, <= operators c < d; c <= d; c < "test"; c <= "test"; c < (unsigned char *) "test"; c <= (unsigned char *) "test"; # failures: 0 TEST: CBString >, >= operators c >= d; c > d; c >= "test"; c > "test"; c >= (unsigned char *) "test"; c > (unsigned char *) "test"; # failures: 0 TEST: (const char *) CBString operator (const char *) CBString (const unsigned char *) CBString # failures: 0 TEST: (double), (float), (int) CBString operators (double) "1.2e3" (float) "1.2e3" (int) "100" (int) "100.55" (unsigned int) "100.55" (double) "xxxxx" Exception (CBString::Unable to convert to a double) correctly thrown (float) "xxxxx" Exception (CBString::Unable to convert to a float) correctly thrown (int) "xxxxx" Exception (CBString::Unable to convert to an int) correctly thrown (unsigned int) "xxxxx" Exception (CBString::Unable to convert to an unsigned int) correctly thrown # failures: 0 TEST: length() method "".length(); "Test".length(); # failures: 0 TEST: character() method, [] operator "Test".character (); "Text"[]; "".character (); Exception (CBString::character index out of bounds) correctly thrown ""[]; Exception (CBString::character index out of bounds) correctly thrown # failures: 0 TEST: format(), formata() methods c.format (...); "Test".formata (...); # failures: 0 TEST: find() method "".find (CBString()); "".find (char *); "".find (char); TEST: reversefind () method "".reversefind (CBString()); "".reversefind (char *); "".reversefind (char); # failures: 0 TEST: findchr(), reversefindchr() methods "".findchr (CBString("abcdef")); "Test".findchr (CBString("abcdef")); "".findchr ("abcdef"); "Test".findchr ("abcdef"); "".reversefindchr (CBString("abcdef")); "Test".reversefindchr (CBString("abcdef")); "".reversefindchr ("abcdef"); "Test".reversefindchr ("abcdef"); # failures: 0 TEST: nfindchr(), nreversefindchr() methods "".nfindchr (CBString("abcdef")); "Test".nfindchr (CBString("abcdef")); "".nfindchr ("abcdef"); "Test".nfindchr ("abcdef"); "".nreversefindchr (CBString("abcdef")); "Test".nreversefindchr (CBString("abcdef")); "".nreversefindchr ("abcdef"); "Test".nreversefindchr ("abcdef"); # failures: 0 TEST: midstr() method "".midstr (1,3) "bogus".midstr (1,3) # failures: 0 TEST: fill() method "".fill(5,'x') "Test-test".fill(5,'x') # failures: 0 TEST: alloc() method "".alloc(5) "Test-test".alloc(5) "".alloc(0) Exception (CBString::Failure in alloc) properly thrown "".alloc(-1) Exception (CBString::Failure in alloc) properly thrown # failures: 0 TEST: setsubstr() method "".setsubstr (4,"extra") "Test-test".setsubstr (4,"extra") "".setsubstr(-1,"extra") Exception (CBString::Failure in setsubstr) properly thrown # failures: 0 TEST: insert() method "".insert (4,"extra") "Test-test".insert (4,"extra") "".insert(-1,"extra") Exception (CBString::Failure in insert) properly thrown # failures: 0 TEST: insertchrs() method "".insertchrs (4,2,'x') "Test-test".insertchrs (4,2,'x') "".insertchrs (-1,2,'x') Exception (CBString::Failure in insertchrs) properly thrown # failures: 0 TEST: replace() method "".replace (4,2,"beef") "Test-test".replace (4,2,"beef") # failures: 0 TEST: findreplace() method "".findreplace ("est","beef") "Test-test".findreplace ("est","beef") "".findreplacecaseless ("est","beef") "TeSt-tEsT".findreplacecaseless ("est","beef") # failures: 0 TEST: remove() method "".remove (4,2) "Test-test".remove (4,2) # failures: 0 TEST: trunc() method "".trunc (4) "Test-test".trunc (4) # failures: 0 TEST: repeat() method "".repeat (4) "Test".repeat (4) # failures: 0 TEST: ltrim(), rtrim() methods "".ltrim () " Test ".ltrim () " ".ltrim () # failures: 0 TEST: split(), join() mechanisms "a b c d e f".split (' ') c.join (<...>) # failures: 0 TEST: caselessEqual(), caselessCmp() mechanisms "Test".caselessEqual ("test") "Test".caselessEqual ("testy") "Test".caselessCmp ("test") "Test".caselessCmp ("testy") # failures: 0 TEST: toupper(), tolower() mechanisms "Test".toupper () "Test".tolower () # failures: 0 TEST: CBStream test "Test" through CBStream.read() "Test" through CBStream.>> TEST: bMultiCatCstr, bMultiConcat # failures: 0 TEST: bDeclTbstr # failures: 0 # test failures: 0 Processing files: bstrlib-1.0.0-1.fc27.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.q2UK0j Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.m90glx + cd .. + rm -rf test + exit 0 + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + DOCDIR=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib + cp -pr README.md /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib + exit 0 + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + LICENSEDIR=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/licenses/bstrlib + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/licenses/bstrlib + cp -pr LICENSE /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/licenses/bstrlib + cp -pr gpl.txt /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/licenses/bstrlib + exit 0 Provides: bstrlib = 1.0.0-1.fc27 bstrlib(x86-64) = 1.0.0-1.fc27 libbstr.so.1.0.0()(64bit) libbstrc++.so.1.0.0()(64bit) Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: libbstr.so.1.0.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) rtld(GNU_HASH) Processing files: bstrlib-devel-1.0.0-1.fc27.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0HcdNK + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + DOCDIR=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-devel + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-devel + cp -pr porting.txt /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-devel + cp -pr bstrlib.txt /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-devel + exit 0 Provides: bstrlib-devel = 1.0.0-1.fc27 bstrlib-devel(x86-64) = 1.0.0-1.fc27 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libbstr.so.1.0.0()(64bit) libbstrc++.so.1.0.0()(64bit) Processing files: bstrlib-safe-1.0.0-1.fc27.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.yCmCnY + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + DOCDIR=/builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-safe + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-safe + cp -pr security.txt /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64/usr/share/doc/bstrlib-safe + exit 0 Provides: bstrlib-safe = 1.0.0-1.fc27 bstrlib-safe(x86-64) = 1.0.0-1.fc27 libbstrsafe.so.1.0.0()(64bit) Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) rtld(GNU_HASH) Processing files: bstrlib-safe-devel-1.0.0-1.fc27.x86_64 Provides: bstrlib-safe-devel = 1.0.0-1.fc27 bstrlib-safe-devel(x86-64) = 1.0.0-1.fc27 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libbstrsafe.so.1.0.0()(64bit) Processing files: bstrlib-debugsource-1.0.0-1.fc27.x86_64 Provides: bstrlib-debugsource = 1.0.0-1.fc27 bstrlib-debugsource(x86-64) = 1.0.0-1.fc27 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: bstrlib-debuginfo-1.0.0-1.fc27.x86_64 Provides: bstrlib-debuginfo = 1.0.0-1.fc27 bstrlib-debuginfo(x86-64) = 1.0.0-1.fc27 debuginfo(build-id) = 20a4100cd2d017846c223d2776c61b9e51e68947 debuginfo(build-id) = eb001f4b60cd5f054e10182003a88e19b9f8e487 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: bstrlib-safe-debuginfo-1.0.0-1.fc27.x86_64 Provides: bstrlib-safe-debuginfo = 1.0.0-1.fc27 bstrlib-safe-debuginfo(x86-64) = 1.0.0-1.fc27 debuginfo(build-id) = 919a647ac1ae0b8389ff2ddc84a390e89fe6d5c7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 Wrote: /builddir/build/RPMS/bstrlib-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-devel-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-safe-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-safe-devel-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-debugsource-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-debuginfo-1.0.0-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/bstrlib-safe-debuginfo-1.0.0-1.fc27.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.SbRICc + umask 022 + cd /builddir/build/BUILD + cd bstrlib-1.0.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/bstrlib-1.0.0-1.fc27.x86_64 + exit 0 Child return code was: 0