diff options
Diffstat (limited to 'net-libs/cyassl/files/cyassl-2.0.8-disable-testsuit-ifnothreads.patch')
-rw-r--r-- | net-libs/cyassl/files/cyassl-2.0.8-disable-testsuit-ifnothreads.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-libs/cyassl/files/cyassl-2.0.8-disable-testsuit-ifnothreads.patch b/net-libs/cyassl/files/cyassl-2.0.8-disable-testsuit-ifnothreads.patch new file mode 100644 index 000000000000..b1c2cbe2494a --- /dev/null +++ b/net-libs/cyassl/files/cyassl-2.0.8-disable-testsuit-ifnothreads.patch @@ -0,0 +1,24 @@ +diff -Naur cyassl-2.0.8.orig//testsuite/testsuite.c cyassl-2.0.8/testsuite/testsuite.c +--- cyassl-2.0.8.orig//testsuite/testsuite.c 2012-02-13 14:51:39.000000000 -0500 ++++ cyassl-2.0.8/testsuite/testsuite.c 2012-04-10 10:26:40.000000000 -0400 +@@ -27,10 +27,11 @@ + #include <cyassl/test.h> + #include <cyassl/ctaocrypt/md5.h> + ++/* Create a stub rather than #error out */ ++/* We can run the tests manually */ + #ifdef SINGLE_THREADED +- #error testsuite needs threads to run, please run ctaocrypt/test, \ +- and the examples/ individually +-#endif ++int main() { return 0; } ++#else + + void wait_tcp_ready(func_args*); + void ctaocrypt_test(void*); +@@ -230,4 +231,4 @@ + fclose(f); + } + +- ++#endif /* SINGLE_THREADED */ |