Auto merge of #924 - ebfull:init-sodium-gtest, r=ebfull

Initialize libsodium in the gtest suite.

We left behind this initialization routine when we switched to gtest. I would rather we had moved those tests over in a separate PR instead of changing existing PRs at the last second -- we would have paid more attention to the consequences.
This commit is contained in:
zkbot 2016-05-12 21:33:21 +00:00
commit 35fd74e598
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include "gtest/gtest.h"
#include "sodium.h"
int main(int argc, char **argv) {
assert(sodium_init() != -1);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}