1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00

Move quirks inclusion to cmptest.h, emscsripten quirks to quirks.h

This commit is contained in:
Frank Denis 2015-01-23 10:41:28 +01:00
parent 4724440492
commit 4921836512
6 changed files with 1 additions and 18 deletions

View File

@ -1,6 +1,4 @@
#include "quirks.h"
#define TEST_NAME "auth5"
#include "cmptest.h"

View File

@ -1,6 +1,4 @@
#include "quirks.h"
#define TEST_NAME "auth7"
#include "cmptest.h"

View File

@ -1,6 +1,4 @@
#include "quirks.h"
#define TEST_NAME "box8"
#include "cmptest.h"

View File

@ -9,6 +9,7 @@
#include <string.h>
#include "sodium.h"
#include "quirks.h"
#ifdef __EMSCRIPTEN__
# undef TEST_SRCDIR
@ -26,14 +27,6 @@
# define rand(X) arc4random(X)
#endif
#ifdef __EMSCRIPTEN__
# define strcmp(s1, s2) xstrcmp(s1, s2)
int strcmp(const char *s1, const char *s2) {
while (*s1 == *s2++) { if (*s1++ == 0) return 0; }
return *(unsigned char *) s1 - *(unsigned char *) --s2;
}
#endif
FILE *fp_res;
int xmain(void);

View File

@ -1,6 +1,4 @@
#include "quirks.h"
#define TEST_NAME "onetimeauth7"
#include "cmptest.h"

View File

@ -1,6 +1,4 @@
#include "quirks.h"
#define TEST_NAME "secretbox8"
#include "cmptest.h"