Bug #7386

test_signal_propagation_in_tests is failed before make install

Added by Ayumu AIZAWA over 1 year ago. Updated over 1 year ago.

[ruby-core:49529]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:lib
Target version:2.0.0
ruby -v:2.0.0dev (2012-11-18 trunk 37710) [x86_64-darwin12.2.0] Backport:

Description

TestRakeFunctional#testsignalpropagationintests is failed, when it has been run before +make install+.

$ rm -rf /Users/ayumin/temp/ruby
$ VERBOSE=1 make test-all TESTS='-v -n "testsignalpropagationintests" test/rake/testrakefunctional.rb'
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe -arch x8664
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D
FORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
CPPFLAGS = -DXOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I. -I.ext/include/x8664-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamiclookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie -arch x8664
SOLIBS =
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n "test
signalpropagationintests" test/rake/testrakefunctional.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n test
signalpropagationin_tests

Running tests:

TestRakeFunctional#testsignalpropagationintests =


testsignalpropagationintests

SIG status = #<Process::Status: pid 32239 SIGTERM (signal 15)>
SIG status.respond_to?(:signaled?) = true
SIG status.signaled? = true

COMMAND: [/Users/ayumin/github/ruby/ruby -I/Users/ayumin/github/ruby/lib -I. /Users/ayumin/github/ruby/bin/rake]
OUTPUT: []
ERROR: [sh: /Users/ayumin/temp/ruby/bin/ruby: No such file or directory
sh: /Users/ayumin/temp/ruby/bin/ruby: No such file or directory
]
EXIT: [#]
PWD: [/private/var/folders/pg/1syrm60952z8wtkqz116llr0000gn/T/testrake_32238]
0.10 s = F

Finished tests in 0.105923s, 9.4408 tests/s, 18.8816 assertions/s.

1) Failure:
testsignalpropagationintests(TestRakeFunctional) [/Users/ayumin/github/ruby/test/rake/testrakefunctional.rb:435]:
Expected /ATEST/ to match "".

1 tests, 2 assertions, 1 failures, 0 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-11-18 trunk 37710) [x8664-darwin12.2.0]
make: *** [yes-test-all] Error 1
$ make install
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe -arch x86
64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DFORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
CPPFLAGS = -D
XOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I. -I.ext/include/x8664-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic
lookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie -arch x8664
SOLIBS =
generating encdb.h
encdb.h unchanged
making enc
make[1]: Nothing to be done for enc'.
making srcs under enc
make[1]: Nothing to be done for
srcs'.
generating transdb.h
transdb.h unchanged
making trans
make[1]: Nothing to be done for ./enc/trans'.
making encs
generating makefile exts.mk
Failed to configure -test-/win32/dln. It will not be installed.
Failed to configure -test-/win32/fd_setsize. It will not be installed.
Failed to configure dl/win32. It will not be installed.
Failed to configure win32ole. It will not be installed.
installing default resize libraries
installing default bug libraries
installing default bug libraries
installing default bug libraries
installing default exception libraries
installing default funcall libraries
installing default break libraries
installing default dot.dot libraries
installing default compat libraries
installing default usr libraries
installing default num2int libraries
installing default old_thread_select libraries
installing default path_to_class libraries
installing default printf libraries
installing default numhash libraries
installing default update libraries
installing default string libraries
installing default symbol libraries
installing default typeddata libraries
installing default wait_for_single_fd libraries
make[2]: Nothing to be done for
all'.
make[2]: Nothing to be done for all'.
installing default bigdecimal libraries
installing default continuation libraries
installing default coverage libraries
installing default curses libraries
installing default date_core libraries
installing default dbm libraries
installing digest libraries
installing default digest libraries
installing default bubblebabble libraries
installing default md5 libraries
installing default rmd160 libraries
installing default sha1 libraries
installing default sha2 libraries
installing dl libraries
installing default dl libraries
installing default callback libraries
make[2]: Nothing to be done for
all'.
installing default etc libraries
installing default fcntl libraries
installing default fiber libraries
installing default fiddle libraries
installing default gdbm libraries
installing default console libraries
installing default nonblock libraries
installing default wait libraries
installing default libraries
installing default generator libraries
installing default parser libraries
installing default complex libraries
installing default rational libraries
installing default nkf libraries
installing default objspace libraries
installing default openssl libraries
installing default pathname libraries
installing default psych libraries
installing default pty libraries
installing default cparse libraries
installing default readline libraries
installing default ripper libraries
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default sdbm libraries
installing default socket libraries
installing default stringio libraries
installing default strscan libraries
installing default syslog libraries
installing tcltklib libraries
installing default tcltklib libraries
installing default tkutil libraries
make[2]: Nothing to be done for all'.
installing default zlib libraries
make[2]:
ruby' is up to date.
Generating RDoc documentation

No newer files.

Files: 0

Classes: 0 (0 undocumented)
Modules: 0 (0 undocumented)
Constants: 0 (0 undocumented)
Attributes: 0 (0 undocumented)
Methods: 0 (0 undocumented)

Total: 0 (0 undocumented)
0.00% documented

Elapsed: 0.0s
./miniruby -I./lib -I. -I.ext/common ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --install=all --rdoc-output=".ext/rdoc"
installing binary commands: /Users/ayumin/temp/ruby/bin
installing base libraries: /Users/ayumin/temp/ruby/lib
installing arch files: /Users/ayumin/temp/ruby/lib/ruby/2.0.0/x8664-darwin12.2.0
installing pkgconfig data: /Users/ayumin/temp/ruby/lib/pkgconfig
installing extension objects: /Users/ayumin/temp/ruby/lib/ruby/2.0.0/x86
64-darwin12.2.0
installing extension objects: /Users/ayumin/temp/ruby/lib/ruby/siteruby/2.0.0/x8664-darwin12.2.0
installing extension objects: /Users/ayumin/temp/ruby/lib/ruby/vendorruby/2.0.0/x8664-darwin12.2.0
installing extension headers: /Users/ayumin/temp/ruby/include/ruby-2.0.0/x8664-darwin12.2.0
installing extension scripts: /Users/ayumin/temp/ruby/lib/ruby/2.0.0
installing extension scripts: /Users/ayumin/temp/ruby/lib/ruby/site
ruby/2.0.0
installing extension scripts: /Users/ayumin/temp/ruby/lib/ruby/vendorruby/2.0.0
installing extension headers: /Users/ayumin/temp/ruby/include/ruby-2.0.0/ruby
installing rdoc: /Users/ayumin/temp/ruby/share/ri/2.0.0/system
installing capi-docs: /Users/ayumin/temp/ruby/share/doc/ruby
installing command scripts: /Users/ayumin/temp/ruby/bin
installing library scripts: /Users/ayumin/temp/ruby/lib/ruby/2.0.0
installing common headers: /Users/ayumin/temp/ruby/include/ruby-2.0.0
installing manpages: /Users/ayumin/temp/ruby/share/man/man1
installing default gems: /Users/ayumin/temp/ruby/lib/ruby/gems/2.0.0 (cache, doc, gems, specifications)
bigdecimal 1.1.0
io-console 0.3
json 1.7.1
minitest 3.4.0
psych 1.3.4
rake 0.9.4
rdoc 3.9.4
test-unit 2.0.0.0
$ VERBOSE=1 make test-all TESTS='-v -n "test
signalpropagationintests" test/rake/testrakefunctional.rb'
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe -arch x86
64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DFORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
CPPFLAGS = -D
XOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I. -I.ext/include/x8664-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic
lookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie -arch x8664
SOLIBS =
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n "testsignalpropagationintests" test/rake/testrakefunctional.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n testsignalpropagationintests

Running tests:

TestRakeFunctional#testsignalpropagationintests =


testsignalpropagationintests

SIG status = #<Process::Status: pid 32560 SIGTERM (signal 15)>
SIG status.respond_to?(:signaled?) = true
SIG status.signaled? = true

COMMAND: [/Users/ayumin/github/ruby/ruby -I/Users/ayumin/github/ruby/lib -I. /Users/ayumin/github/ruby/bin/rake]
OUTPUT: [ATEST
]
ERROR: [rake aborted!
SIGTERM
/private/var/folders/pg/1syrm60952z8wtkqz116llr0000gn/T/testrake32559/Rakefile:12:in `block in '
Tasks: TOP => a
(See full trace by running task with --trace)
]
EXIT: [#]
PWD: [/private/var/folders/pg/1syrm60952z8wtkqz116
llr0000gn/T/testrake32559]
0.18 s = .

Finished tests in 0.189414s, 5.2794 tests/s, 21.1178 assertions/s.

1 tests, 4 assertions, 0 failures, 0 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-11-18 trunk 37710) [x86_64-darwin12.2.0]

History

#1 Updated by Vit Ondruch over 1 year ago

Same here with ruby 2.0.0dev (2012-11-19 trunk 37735) [x86_64-linux]

#2 Updated by Eric Hodel over 1 year ago

  • Status changed from Open to Closed

=begin
Thank you, I fixed it in r38232

Now rake uses (({EnvUtil.ruby})) and (({ENV['RUBY']})) (for sub-processes) properly.
=end

Also available in: Atom PDF