vendor/libsodium/test/default/cmptest.h in rbnacl-libsodium-1.0.1 vs vendor/libsodium/test/default/cmptest.h in rbnacl-libsodium-1.0.2
- old
+ new
@@ -8,9 +8,13 @@
#include <stdlib.h>
#include <string.h>
#include "sodium.h"
+#ifdef __EMSCRIPTEN__
+# undef TEST_SRCDIR
+# define TEST_SRCDIR "/test-data"
+#endif
#ifndef TEST_SRCDIR
# define TEST_SRCDIR "."
#endif
#define TEST_NAME_RES TEST_NAME ".res"