Skip to content

Instantly share code, notes, and snippets.

@kimuraw
Created December 25, 2016 14:09
Show Gist options
  • Save kimuraw/30d66656928a0c3bd0380a00608e7388 to your computer and use it in GitHub Desktop.
Save kimuraw/30d66656928a0c3bd0380a00608e7388 to your computer and use it in GitHub Desktop.
ruby-2.4.0: `make` and `make test` passed on OS X 10.6 Snow Leopard (i386)
diff --git a/ext/-test-/memory_status/memory_status.c b/ext/-test-/memory_status/memory_status.c
index 80e2648..8466609 100644
--- a/ext/-test-/memory_status/memory_status.c
+++ b/ext/-test-/memory_status/memory_status.c
@@ -18,11 +18,11 @@ read_status(VALUE self)
VALUE rss;
kern_return_t error;
mach_msg_type_number_t out_count;
- mach_task_basic_info_data_t taskinfo;
+ task_basic_info_data_t taskinfo;
taskinfo.virtual_size = 0;
- out_count = MACH_TASK_BASIC_INFO_COUNT;
- error = task_info(mach_task_self(), MACH_TASK_BASIC_INFO,
+ out_count = TASK_BASIC_INFO_COUNT;
+ error = task_info(mach_task_self(), TASK_BASIC_INFO,
(task_info_t)&taskinfo, &out_count);
if (error != KERN_SUCCESS) return Qnil;
size = ULL2NUM(taskinfo.virtual_size);
@kimuraw
Copy link
Author

kimuraw commented Dec 25, 2016

test-all result:

Finished tests in 406.826153s, 40.5013 tests/s, 5355.3907 assertions/s.
16477 tests, 2178713 assertions, 0 failures, 5 errors, 84 skips

ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin10.0]
  1. Error: TestProcess#test_deadlock_by_signal_at_forking: (Timeout)
  2. Error: TestGemRemoteFetcher#test_download_same_file: Errno::ENOENT: No such file or directory @ rb_sysopen
  3. Error: TestGemRemoteFetcher#test_download_local: Errno::ENOENT: No such file or directory @ rb_sysopen
  4. Error: TestGemRemoteFetcher#test_download_local_read_only: Errno::ENOENT: No such file or directory @ rb_sysopen
  5. Error: TestGemRemoteFetcher#test_download_local_space: Errno::ENOENT: No such file or directory @ rb_sysopen

@kimuraw
Copy link
Author

kimuraw commented Dec 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment