Project

General

Profile

Actions

Bug #7386

closed

test_signal_propagation_in_tests is failed before make install

Added by ayumin (Ayumu AIZAWA) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0dev (2012-11-18 trunk 37710) [x86_64-darwin12.2.0]
Backport:
[ruby-core:49529]

Description

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

$ rm -rf /Users/ayumin/temp/ruby
$ VERBOSE=1 make test-all TESTS='-v -n "test_signal_propagation_in_tests" test/rake/test_rake_functional.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 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -fstack-protector -Wl,-u,_objc_msgSend -Wl,-pie -arch x86_64
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_signal_propagation_in_tests" test/rake/test_rake_functional.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n test_signal_propagation_in_tests

Running tests:

TestRakeFunctional#test_signal_propagation_in_tests =


test_signal_propagation_in_tests

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: [#<Process::Status: pid 32240 exit 0>]
PWD: [/private/var/folders/pg/1syrm60952z8wtkqz116_llr0000gn/T/test_rake_32238]
0.10 s = F

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

  1. Failure:
    test_signal_propagation_in_tests(TestRakeFunctional) [/Users/ayumin/github/ruby/test/rake/test_rake_functional.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) [x86_64-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 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -fstack-protector -Wl,-u,_objc_msgSend -Wl,-pie -arch x86_64
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/x86_64-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/site_ruby/2.0.0/x86_64-darwin12.2.0
installing extension objects: /Users/ayumin/temp/ruby/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin12.2.0
installing extension headers: /Users/ayumin/temp/ruby/include/ruby-2.0.0/x86_64-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/vendor_ruby/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_signal_propagation_in_tests" test/rake/test_rake_functional.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 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -fstack-protector -Wl,-u,_objc_msgSend -Wl,-pie -arch x86_64
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_signal_propagation_in_tests" test/rake/test_rake_functional.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -v -n test_signal_propagation_in_tests

Running tests:

TestRakeFunctional#test_signal_propagation_in_tests =


test_signal_propagation_in_tests

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/1syrm60952z8wtkqz116_llr0000gn/T/test_rake_32559/Rakefile:12:in `block in <top (required)>'
Tasks: TOP => a
(See full trace by running task with --trace)
]
EXIT: [#<Process::Status: pid 32561 exit 1>]
PWD: [/private/var/folders/pg/1syrm60952z8wtkqz116_llr0000gn/T/test_rake_32559]
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]

Actions #1

Updated by vo.x (Vit Ondruch) almost 12 years ago

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

Updated by drbrain (Eric Hodel) almost 12 years 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

Actions

Also available in: Atom PDF

Like0
Like0Like0