Mock Version: 1.4.13
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rubygem-rdiscount.spec'], timeout=0nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bJ1JHV:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True)
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4ed00720be4340f3bd773057a48a18b3', '-D', '/var/lib/mock/centos-7-i386/root', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bJ1JHV:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/rubygem-rdiscount.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False
BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system
BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system
Building target platforms: i686
Building for target i686
Wrote: /builddir/build/SRPMS/rubygem-rdiscount-2.1.8-2.el7.src.rpm
Child return code was: 0
ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rubygem-rdiscount.spec'], timeout=0nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bJ1JHV:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True)
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e67e51f8cadf4564b8195d0922075153', '-D', '/var/lib/mock/centos-7-i386/root', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bJ1JHV:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rubygem-rdiscount.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False
BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system
BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sFLpoF
+ umask 022
+ cd /builddir/build/BUILD
+ gem unpack /builddir/build/SOURCES/rdiscount-2.1.8.gem
Unpacked gem: '/builddir/build/BUILD/rdiscount-2.1.8'
+ cd /builddir/build/BUILD
+ cd rdiscount-2.1.8
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ gem spec /builddir/build/SOURCES/rdiscount-2.1.8.gem -l --ruby
+ sed -e 's|,|,\n|g'
+ sed -i ext/extconf.rb -e '\@check_sizeof@s| == 4|== size|'
+ cat
+ cat discount_files
+ read f
+ rm -f ext/Csio.c
+ sed -i rdiscount.gemspec -e '\@ext/Csio.c@d'
+ read f
+ rm -f ext/amalloc.c
+ sed -i rdiscount.gemspec -e '\@ext/amalloc.c@d'
+ read f
+ rm -f ext/basename.c
+ sed -i rdiscount.gemspec -e '\@ext/basename.c@d'
+ read f
+ rm -f ext/css.c
+ sed -i rdiscount.gemspec -e '\@ext/css.c@d'
+ read f
+ rm -f ext/docheader.c
+ sed -i rdiscount.gemspec -e '\@ext/docheader.c@d'
+ read f
+ rm -f ext/dumptree.c
+ sed -i rdiscount.gemspec -e '\@ext/dumptree.c@d'
+ read f
+ rm -f ext/emmatch.c
+ sed -i rdiscount.gemspec -e '\@ext/emmatch.c@d'
+ read f
+ rm -f ext/flags.c
+ sed -i rdiscount.gemspec -e '\@ext/flags.c@d'
+ read f
+ rm -f ext/generate.c
+ sed -i rdiscount.gemspec -e '\@ext/generate.c@d'
+ read f
+ rm -f ext/github_flavoured.c
+ sed -i rdiscount.gemspec -e '\@ext/github_flavoured.c@d'
+ read f
+ rm -f ext/html5.c
+ sed -i rdiscount.gemspec -e '\@ext/html5.c@d'
+ read f
+ rm -f ext/main.c
+ sed -i rdiscount.gemspec -e '\@ext/main.c@d'
+ read f
+ rm -f ext/makepage.c
+ sed -i rdiscount.gemspec -e '\@ext/makepage.c@d'
+ read f
+ rm -f ext/markdown.c
+ sed -i rdiscount.gemspec -e '\@ext/markdown.c@d'
+ read f
+ rm -f ext/mkd2html.c
+ sed -i rdiscount.gemspec -e '\@ext/mkd2html.c@d'
+ read f
+ rm -f ext/mkdio.c
+ sed -i rdiscount.gemspec -e '\@ext/mkdio.c@d'
+ read f
+ rm -f ext/mktags.c
+ sed -i rdiscount.gemspec -e '\@ext/mktags.c@d'
+ read f
+ rm -f ext/pgm_options.c
+ sed -i rdiscount.gemspec -e '\@ext/pgm_options.c@d'
+ read f
+ rm -f ext/resource.c
+ sed -i rdiscount.gemspec -e '\@ext/resource.c@d'
+ read f
+ rm -f ext/setup.c
+ sed -i rdiscount.gemspec -e '\@ext/setup.c@d'
+ read f
+ rm -f ext/tags.c
+ sed -i rdiscount.gemspec -e '\@ext/tags.c@d'
+ read f
+ rm -f ext/theme.c
+ sed -i rdiscount.gemspec -e '\@ext/theme.c@d'
+ read f
+ rm -f ext/toc.c
+ sed -i rdiscount.gemspec -e '\@ext/toc.c@d'
+ read f
+ rm -f ext/xml.c
+ sed -i rdiscount.gemspec -e '\@ext/xml.c@d'
+ read f
+ rm -f ext/xmlpage.c
+ sed -i rdiscount.gemspec -e '\@ext/xmlpage.c@d'
+ read f
+ rm -f ext/mkdio.h
+ sed -i rdiscount.gemspec -e '\@ext/mkdio.h@d'
+ read f
+ sed -i ext/extconf.rb -e '\@create_makefile@i \$libs = "-lmarkdown"'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LsGPws
+ umask 022
+ cd /builddir/build/BUILD
+ cd rdiscount-2.1.8
+ rm -rf .//usr/lib/gems/ruby/rdiscount-2.1.8
+ rm -rf .//usr/share/gems/gems/rdiscount-2.1.8
+ gem build rdiscount.gemspec
BUILDSTDERR: WARNING: no description specified
Successfully built RubyGem
Name: rdiscount
Version: 2.1.8
File: rdiscount-2.1.8.gem
+ mkdir -p ./usr/share/gems
+ CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables'\'' '
+ gem install -V --local --install-dir ./usr/share/gems --bindir ./usr/bin --force --document=ri,rdoc rdiscount-2.1.8.gem
Installing gem rdiscount-2.1.8
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/BUILDING
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/COPYING
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/README.markdown
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/Rakefile
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/bin/rdiscount
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/VERSION
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/amalloc.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/blocktags
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/config.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/cstring.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/extconf.rb
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/markdown.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/pgm_options.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/rdiscount.c
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/tags.h
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/ext/version.c
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/lib/markdown.rb
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/lib/rdiscount.rb
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/man/markdown.7
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/man/rdiscount.1
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/man/rdiscount.1.ronn
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/rdiscount.gemspec
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/benchmark.rb
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/benchmark.txt
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/markdown_test.rb
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb
Building native extensions. This could take a while...
/usr/bin/ruby extconf.rb
checking for random()... yes
checking for srandom()... yes
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... 4
checking size of unsigned int... 4
checking size of unsigned short... 2
creating Makefile
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_RANDOM -DHAVE_SRANDOM -DHAVE_RAND -DHAVE_SRAND -DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_SHORT=2 -DVERSION=\"2.1.8\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -m32 -o rdiscount.o -c rdiscount.c
BUILDSTDERR: rdiscount.c: In function 'rb_rdiscount_to_html':
BUILDSTDERR: rdiscount.c:50:5: warning: implicit declaration of function 'rb_rdiscount__get_flags' [-Wimplicit-function-declaration]
BUILDSTDERR: int flags = rb_rdiscount__get_flags(self);
BUILDSTDERR: ^
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_RANDOM -DHAVE_SRANDOM -DHAVE_RAND -DHAVE_SRAND -DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_SHORT=2 -DVERSION=\"2.1.8\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -m32 -o version.o -c version.c
rm -f rdiscount.so
gcc -shared -o rdiscount.so rdiscount.o version.o -L. -L/usr/lib -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lruby -lmarkdown -lpthread -lrt -ldl -lcrypt -lm -lc
make "DESTDIR=" install
/usr/bin/mkdir -p ./.gem.20190226-84-9tnj0i
exit > .RUBYARCHDIR.time
/usr/bin/install -c -m 0755 rdiscount.so ./.gem.20190226-84-9tnj0i
BUILDSTDERR: unable to convert "\xCC" from ASCII-8BIT to UTF-8 for lib/rdiscount.so, skipping
/builddir/build/BUILD/rdiscount-2.1.8/usr/bin/rdiscount
Successfully installed rdiscount-2.1.8
Parsing documentation for rdiscount-2.1.8
Installing ri documentation for rdiscount-2.1.8
Installing darkfish documentation for rdiscount-2.1.8
1 gem installed
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hntdeo
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386
BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386
+ cd rdiscount-2.1.8
+ rm -rf /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386
+ mkdir -p /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/gems
+ mkdir -p /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/man/man1
+ mkdir -p /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/man/man7
+ mv ./usr/share/gems/gems/rdiscount-2.1.8/man/rdiscount.1 /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/man/man1
+ mv ./usr/share/gems/gems/rdiscount-2.1.8/man/markdown.7 /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/man/man7
+ cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/gems ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/gems
+ rm -rf /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/gems/gems/rdiscount-2.1.8/ext
+ rm -rf /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/share/gems/gems/rdiscount-2.1.8/lib/rdiscount.so
+ mkdir -p /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/lib/gems/ruby/rdiscount-2.1.8/lib
+ cp -a ./usr/share/gems/gems/rdiscount-2.1.8/lib/rdiscount.so /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/lib/gems/ruby/rdiscount-2.1.8/lib
+ mkdir -p /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386//usr/bin
+ mv ./usr/bin/rdiscount /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386//usr/bin
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/rdiscount-2.1.8
extracting debug info from /builddir/build/BUILDROOT/rubygem-rdiscount-2.1.8-2.el7.i386/usr/lib/gems/ruby/rdiscount-2.1.8/lib/rdiscount.so
BUILDSTDERR: dwz: Too few files for multifile optimization
/usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
BUILDSTDERR: 9 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.qbvSql
+ umask 022
+ cd /builddir/build/BUILD
~/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8 ~/build/BUILD/rdiscount-2.1.8
+ cd rdiscount-2.1.8
+ pushd ./usr/share/gems/gems/rdiscount-2.1.8
+ ruby -Ilib:ext:. -e 'gem "test-unit" ; Dir.glob("test/*_test.rb").sort.each {|f| require f}'
Loaded suite -e
Started
..................F
===============================================================================
Failure:
test_should_get_the_generated_toc(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:63:in `test_should_get_the_generated_toc'
60: def test_should_get_the_generated_toc
61: rd = RDiscount.new("# Level 1\n\n## Level 2", :generate_toc)
62: exp = %()
=> 63: assert_equal exp, rd.toc_content.strip
64: end
65:
66: def test_toc_should_escape_apostropes
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
......F
===============================================================================
Failure:
test_that_extra_definition_lists_work(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:258:in `test_that_extra_definition_lists_work'
255: tag1
256: : data
257: EOS
=> 258: assert_equal <
260: tag1
261: data
<"\n- tag1
\n- data
\n
\n"> expected but was
<"tag1\n: data
\n">
diff:
-
? - tag1
? p
? - data
? : p
-
===============================================================================
..F
===============================================================================
Failure:
test_that_generate_toc_sets_toc_ids(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:57:in `test_that_generate_toc_sets_toc_ids'
54: def test_that_generate_toc_sets_toc_ids
55: rd = RDiscount.new("# Level 1\n\n## Level 2", :generate_toc)
56: assert rd.generate_toc
=> 57: assert_equal %(\nLevel 1
\n\n\nLevel 2
\n), rd.to_html
58: end
59:
60: def test_should_get_the_generated_toc
<"\nLevel 1
\n\n\nLevel 2
\n"> expected but was
<"\nLevel 1
\n\n\nLevel 2
\n">
diff:
?
? -
Level 1
?
? -
Level 2
===============================================================================
F
===============================================================================
Failure:
test_that_gfm_code_blocks_work(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:213:in `test_that_gfm_code_blocks_work'
210: line 2
211: ```
212: EOS
=> 213: assert_equal "line 1\n\nline 2\n
\n", rd.to_html
214: end
215:
216: def test_that_gfm_code_blocks_work_with_language
<"line 1\n\nline 2\n
\n"> expected but was
<"```\nline 1
\n\nline 2\n```
\n">
diff:
+ ```
?
line 1
? line 2
?
? ```
===============================================================================
F
===============================================================================
Failure:
test_that_gfm_code_blocks_work_with_language(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:224:in `test_that_gfm_code_blocks_work_with_language'
221: line 2
222: ```
223: EOS
=> 224: assert_equal "
line 1\n\nline 2\n
\n", rd.to_html
225: end
226:
227: def test_that_pandoc_code_blocks_work
<"line 1\n\nline 2\n
\n"> expected but was
<"```ruby\nline 1
\n\nline 2\n```
\n">
diff:
? line 1
? ```
+ line 1
? line 2
?
? ```
===============================================================================
......F
===============================================================================
Failure:
test_that_pandoc_code_blocks_work(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:235:in `test_that_pandoc_code_blocks_work'
232: line 2
233: ~~~
234: EOS
=> 235: assert_equal "line 1\n\nline 2\n
\n", rd.to_html
236: end
237:
238: def test_that_discount_definition_lists_work
<"line 1\n\nline 2\n
\n"> expected but was
<"~~~\nline 1
\n\nline 2\n~~~
\n">
diff:
+ ~~~
?
line 1
? line 2
?
? ~~~
===============================================================================
...........F
===============================================================================
Failure:
test_that_tags_can_have_dashes_and_underscores(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:149:in `test_that_tags_can_have_dashes_and_underscores'
146: return
147: end
148: rd = RDiscount.new("foo bar and baz")
=> 149: assert_equal "foo bar and baz
\n", rd.to_html
150: end
151:
152: def test_that_footnotes_flag_works
<"foo bar and baz
\n"> expected but was
<"foo <asdf-qwerty>bar</asdf-qwerty> and <a_b>baz</a_b>
\n">
diff:
? foo < asdf-qwerty>bar< /asdf-qwerty> and < a_b>baz< /a_b>
? < < < <
===============================================================================
..F
===============================================================================
Failure:
test_toc_should_escape_apostropes(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:69:in `test_toc_should_escape_apostropes'
66: def test_toc_should_escape_apostropes
67: rd = RDiscount.new("# A'B\n\n## C", :generate_toc)
68: exp = %()
=> 69: assert_equal exp, rd.toc_content.strip
70: end
71:
72: def test_toc_should_escape_question_marks
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
F
===============================================================================
Failure:
test_toc_should_escape_question_marks(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:75:in `test_toc_should_escape_question_marks'
72: def test_toc_should_escape_question_marks
73: rd = RDiscount.new("# A?B\n\n## C", :generate_toc)
74: exp = %()
=> 75: assert_equal exp, rd.toc_content.strip
76: end
77:
78: if "".respond_to?(:encoding)
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
Finished in 0.087996691 seconds.
54 tests, 72 assertions, 9 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
83.3333% passed
613.66 tests/s, 818.21 assertions/s
+ :
+ remove_fail_test test/rdiscount_test.rb test_that_extra_definition_lists_work test_that_tags_can_have_dashes_and_underscores
+ filename=test/rdiscount_test.rb
+ shift
+ num=2
+ '[' 2 -gt 0 ']'
+ '[' '!' -f test/rdiscount_test.rb.orig ']'
+ cp -p test/rdiscount_test.rb test/rdiscount_test.rb.orig
BUILDSTDERR: ++ cat -n test/rdiscount_test.rb
BUILDSTDERR: ++ sed -n -e '\@^[ \t]*[1-9][0-9]*[ \t]*def test_that_extra_definition_lists_work@p'
BUILDSTDERR: ++ sed -e 's|^[ \t]*||' -e 's|def.*$||'
+ start='253 '
BUILDSTDERR: ++ cat -n test/rdiscount_test.rb
BUILDSTDERR: ++ sed -n -e '\@^[ \t]*[1-9][0-9]*[ \t]*def test_that_extra_definition_lists_work@,\@^[ \t]*[1-9][0-9]*[ \t]*def@p'
BUILDSTDERR: ++ tail -n 1
BUILDSTDERR: ++ sed -e 's|^[ \t]*||' -e 's|def.*$||'
+ end='266 '
+ end=265
+ sed -i -e '253 ,265d' test/rdiscount_test.rb
+ shift
+ num=1
+ '[' 1 -gt 0 ']'
+ '[' '!' -f test/rdiscount_test.rb.orig ']'
BUILDSTDERR: ++ cat -n test/rdiscount_test.rb
BUILDSTDERR: ++ sed -n -e '\@^[ \t]*[1-9][0-9]*[ \t]*def test_that_tags_can_have_dashes_and_underscores@p'
BUILDSTDERR: ++ sed -e 's|^[ \t]*||' -e 's|def.*$||'
+ start='141 '
BUILDSTDERR: ++ cat -n test/rdiscount_test.rb
BUILDSTDERR: ++ sed -n -e '\@^[ \t]*[1-9][0-9]*[ \t]*def test_that_tags_can_have_dashes_and_underscores@,\@^[ \t]*[1-9][0-9]*[ \t]*def@p'
BUILDSTDERR: ++ tail -n 1
BUILDSTDERR: ++ sed -e 's|^[ \t]*||' -e 's|def.*$||'
+ end='152 '
+ end=151
+ sed -i -e '141 ,151d' test/rdiscount_test.rb
+ shift
+ num=0
+ '[' 0 -gt 0 ']'
+ ruby -Ilib:ext:. -e 'gem "test-unit" ; Dir.glob("test/*_test.rb").sort.each {|f| require f}'
Loaded suite -e
Started
..................F
===============================================================================
Failure:
test_should_get_the_generated_toc(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:63:in `test_should_get_the_generated_toc'
60: def test_should_get_the_generated_toc
61: rd = RDiscount.new("# Level 1\n\n## Level 2", :generate_toc)
62: exp = %()
=> 63: assert_equal exp, rd.toc_content.strip
64: end
65:
66: def test_toc_should_escape_apostropes
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
........F
===============================================================================
Failure:
test_that_generate_toc_sets_toc_ids(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:57:in `test_that_generate_toc_sets_toc_ids'
54: def test_that_generate_toc_sets_toc_ids
55: rd = RDiscount.new("# Level 1\n\n## Level 2", :generate_toc)
56: assert rd.generate_toc
=> 57: assert_equal %(\nLevel 1
\n\n\nLevel 2
\n), rd.to_html
58: end
59:
60: def test_should_get_the_generated_toc
<"\nLevel 1
\n\n\nLevel 2
\n"> expected but was
<"\nLevel 1
\n\n\nLevel 2
\n">
diff:
?
? -
Level 1
?
? -
Level 2
===============================================================================
F
===============================================================================
Failure:
test_that_gfm_code_blocks_work(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:202:in `test_that_gfm_code_blocks_work'
199: line 2
200: ```
201: EOS
=> 202: assert_equal "line 1\n\nline 2\n
\n", rd.to_html
203: end
204:
205: def test_that_gfm_code_blocks_work_with_language
<"line 1\n\nline 2\n
\n"> expected but was
<"```\nline 1
\n\nline 2\n```
\n">
diff:
+ ```
?
line 1
? line 2
?
? ```
===============================================================================
F
===============================================================================
Failure:
test_that_gfm_code_blocks_work_with_language(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:213:in `test_that_gfm_code_blocks_work_with_language'
210: line 2
211: ```
212: EOS
=> 213: assert_equal "line 1\n\nline 2\n
\n", rd.to_html
214: end
215:
216: def test_that_pandoc_code_blocks_work
<"line 1\n\nline 2\n
\n"> expected but was
<"```ruby\nline 1
\n\nline 2\n```
\n">
diff:
? line 1
? ```
+ line 1
? line 2
?
? ```
===============================================================================
......F
===============================================================================
Failure:
test_that_pandoc_code_blocks_work(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:224:in `test_that_pandoc_code_blocks_work'
221: line 2
222: ~~~
223: EOS
=> 224: assert_equal "line 1\n\nline 2\n
\n", rd.to_html
225: end
226:
227: def test_that_discount_definition_lists_work
<"line 1\n\nline 2\n
\n"> expected but was
<"~~~\nline 1
\n\nline 2\n~~~
\n">
diff:
+ ~~~
?
line 1
? line 2
?
? ~~~
===============================================================================
.............F
===============================================================================
Failure:
test_toc_should_escape_apostropes(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:69:in `test_toc_should_escape_apostropes'
66: def test_toc_should_escape_apostropes
67: rd = RDiscount.new("# A'B\n\n## C", :generate_toc)
68: exp = %()
=> 69: assert_equal exp, rd.toc_content.strip
70: end
71:
72: def test_toc_should_escape_question_marks
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
F
===============================================================================
Failure:
test_toc_should_escape_question_marks(RDiscountTest)
/builddir/build/BUILD/rdiscount-2.1.8/usr/share/gems/gems/rdiscount-2.1.8/test/rdiscount_test.rb:75:in `test_toc_should_escape_question_marks'
72: def test_toc_should_escape_question_marks
73: rd = RDiscount.new("# A?B\n\n## C", :generate_toc)
74: exp = %()
=> 75: assert_equal exp, rd.toc_content.strip
76: end
77:
78: if "".respond_to?(:encoding)
<"">(UTF-8) expected but was
<"">(ASCII-8BIT)
diff:
? Encoding: UTF -8
? ASCII BIT
===============================================================================
Finished in 0.073016065 seconds.
52 tests, 70 assertions, 7 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
86.5385% passed
712.17 tests/s, 958.69 assertions/s
RPM build errors:
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.qbvSql (%check)
BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.qbvSql (%check)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
result = func(*args, **kw)
File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 636, in do
raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
Error: Command failed:
# /usr/bin/systemd-nspawn -q -M e67e51f8cadf4564b8195d0922075153 -D /var/lib/mock/centos-7-i386/root --capability=cap_ipc_lock --bind=/tmp/mock-resolv.bJ1JHV:/etc/resolv.conf --setenv=LANG=en_US.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1= \s-\v\$ -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/rubygem-rdiscount.spec