Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nif-mode and eunit_nif tests. #129

Merged
merged 1 commit into from
Jan 3, 2014
Merged

Fix nif-mode and eunit_nif tests. #129

merged 1 commit into from
Jan 3, 2014

Conversation

evanmcc
Copy link
Contributor

@evanmcc evanmcc commented Jan 2, 2014

  • start with scott's commit 0d3acb0
  • fix the issue introduced in 6c97173 more mininally
  • ifdef out env reading even though it doesn't matter

- fix the issue introduced in 6c97173 more mininally
- ifdef out env reading even though it doesn't matter
application:set_env(bitcask, io_mode, Mode),
determine_file_module()
end.
-else.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK. If the function ever gets more involve than this, it would be nice to only have the test bits ifdefed (for example, a function containing only the bits in _ clause).

@engelsanchez
Copy link
Contributor

The code looks good. eunit tests run in both modes from the makefile and starting and using Riak in both modes seems to work. I verified that by manually inserting/reading and peeking at the IO mode with bitcask_io:determine_file_module().

👍 💃 ⛵

evanmcc added a commit that referenced this pull request Jan 3, 2014
Fix nif-mode and eunit_nif tests.
@evanmcc evanmcc merged commit a99f2f0 into 1.6 Jan 3, 2014
@seancribbs seancribbs deleted the fix-nif-mode branch April 1, 2015 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants