kubo / ruby-oci8

Ruby-oci8 - Oracle interface for ruby
Other
169 stars 75 forks source link

test_sequence(TestMetadata) get a failure #18

Closed yahonda closed 12 years ago

yahonda commented 12 years ago

test_sequence(TestMetadata) get a failure.

$ make check
ruby -w setup.rb setup
setup.rb:278: warning: assigned but unused variable - vname
setup.rb:278: warning: assigned but unused variable - desc
setup.rb:278: warning: assigned but unused variable - default2
setup.rb:109: Use RbConfig instead of obsolete and deprecated Config.
---> lib
---> lib/oci8
<--- lib/oci8
---> lib/dbd
<--- lib/dbd
<--- lib
---> ext
---> ext/oci8
make
make[1]: Entering directory `/home/yahonda/git/ruby-oci8/ext/oci8'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/yahonda/git/ruby-oci8/ext/oci8'
<--- ext/oci8
<--- ext
ruby -w setup.rb test
setup.rb:278: warning: assigned but unused variable - vname
setup.rb:278: warning: assigned but unused variable - desc
setup.rb:278: warning: assigned but unused variable - default2
setup.rb:109: Use RbConfig instead of obsolete and deprecated Config.
mkdir -p ./test
/home/yahonda/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -w -I/home/yahonda/git/ruby-oci8/ext/oci8 -I/home/yahonda/git/ruby-oci8/lib -I/home/yahonda/git/ruby-oci8/support -I/home/yahonda/git/ruby-oci8/test /home/yahonda/git/ruby-oci8/test/test_all.rb
/home/yahonda/git/ruby-oci8/lib/oci8/object.rb:397: warning: assigned but unused variable - args
lib/rational.rb is deprecated
/home/yahonda/git/ruby-oci8/test/test_bind_time.rb:86: warning: assigned but unused variable - day_in
/home/yahonda/git/ruby-oci8/test/test_bind_time.rb:87: warning: assigned but unused variable - time_out
/home/yahonda/git/ruby-oci8/test/test_oci8.rb:220: warning: assigned but unused variable - dttm
/home/yahonda/git/ruby-oci8/test/test_metadata.rb:897: warning: assigned but unused variable - descs
/home/yahonda/git/ruby-oci8/test/test_metadata.rb:997: warning: assigned but unused variable - descs
/home/yahonda/git/ruby-oci8/test/test_object.rb:143: warning: assigned but unused variable - ival
Run options:

# Running tests:

.............Skip test_bind_string_as_nchar. It needs Oracle server whose database chracter set is incompatible with unicode.
....................................................unsupported return type (MDSYS.SDO_GEOMETRY.GET_WKB)
unsupported return type (MDSYS.SDO_GEOMETRY.GET_WKT)
unsupported return type (MDSYS.SDO_GEOMETRY.ST_COORDDIM)
.....F......................F....................................................................

Finished tests in 43.068593s, 3.7614 tests/s, 217.7225 assertions/s.

  1) Failure:
test_sequence(TestMetadata) [/home/yahonda/git/ruby-oci8/test/test_metadata.rb:1469]:
min.
<-99999999999999999999999999> expected but was
<-999999999999999999999999999>.

... snip ...
162 tests, 9377 assertions, 2 failures, 0 errors, 0 skips
$

Environment

yahonda commented 12 years ago

This fix works in my environment. Thanks.