aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-14 17:53:20 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-14 17:53:20 +0000
commit7f7371f2e0aa6b0a56f97feba9ce7685a30af25b (patch)
tree29abe396b7c4063c06fbc9108b226094d7b20fc5
parentb0daf1035ea1131ea20cad15ba612a881d59e1f9 (diff)
downloadruby-7f7371f2e0aa6b0a56f97feba9ce7685a30af25b.tar.gz
Removed the obstacle to running test-all with VC14.
* test/fiddle/test_import.rb (LIBC.fprintf): VC14's `fprintf` is very distinct name, then, just ignore this test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/fiddle/test_import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb
index ba68296fd0..25819fbc46 100644
--- a/test/fiddle/test_import.rb
+++ b/test/fiddle/test_import.rb
@@ -19,7 +19,7 @@ module Fiddle
extern "double atof(string)"
extern "unsigned long strtoul(char*, char **, int)"
extern "int qsort(void*, unsigned long, unsigned long, void*)"
- extern "int fprintf(FILE*, char*)"
+ extern "int fprintf(FILE*, char*)" rescue nil
extern "int gettimeofday(timeval*, timezone*)" rescue nil
BoundQsortCallback = bind("void *bound_qsort_callback(void*, void*)"){|ptr1,ptr2| ptr1[0] <=> ptr2[0]}
@@ -84,7 +84,7 @@ module Fiddle
end
def test_io()
- if( RUBY_PLATFORM != BUILD_RUBY_PLATFORM )
+ if( RUBY_PLATFORM != BUILD_RUBY_PLATFORM ) || !defined?(LIBC.fprintf)
return
end
io_in,io_out = IO.pipe()