|
0 |
Description: Remove smtp tests that fail at random
|
|
1 |
Author: Nicolas Mora <babelouest@debian.org>
|
|
2 |
Forwarded: not-needed
|
|
3 |
--- a/test/framework.c
|
|
4 |
+++ b/test/framework.c
|
|
5 |
@@ -24,6 +24,10 @@
|
|
6 |
#include <check.h>
|
|
7 |
#include <ulfius.h>
|
|
8 |
|
|
9 |
+#define BODY_NOT_REDIRECTED "This is the blue pill"
|
|
10 |
+#define BODY_REDIRECTED "Welcome to the Matrix, Neo!"
|
|
11 |
+
|
|
12 |
+#if 0
|
|
13 |
#define SMTP_FROM "sender@localhost"
|
|
14 |
#define SMTP_TO "recipient@localhost"
|
|
15 |
#define SMTP_HOST "localhost"
|
|
16 |
@@ -35,9 +39,6 @@
|
|
17 |
#define BUF_SIZE 4096
|
|
18 |
#define STREQU(a,b) (strcmp(a, b) == 0)
|
|
19 |
|
|
20 |
-#define BODY_NOT_REDIRECTED "This is the blue pill"
|
|
21 |
-#define BODY_REDIRECTED "Welcome to the Matrix, Neo!"
|
|
22 |
-
|
|
23 |
struct smtp_manager {
|
|
24 |
char * mail_data;
|
|
25 |
unsigned int port;
|
|
26 |
@@ -229,6 +230,7 @@
|
|
27 |
|
|
28 |
pthread_exit(NULL);
|
|
29 |
}
|
|
30 |
+#endif
|
|
31 |
|
|
32 |
static char * get_file_content(const char * file_path) {
|
|
33 |
char * buffer = NULL;
|
|
34 |
@@ -1169,6 +1171,7 @@
|
|
35 |
}
|
|
36 |
END_TEST
|
|
37 |
|
|
38 |
+#if 0
|
|
39 |
#define PORT_PLAIN 2525
|
|
40 |
#define PORT_RICH 2526
|
|
41 |
#define FROM "from"
|
|
42 |
@@ -1233,6 +1236,7 @@
|
|
43 |
manager.mail_data = NULL;
|
|
44 |
}
|
|
45 |
END_TEST
|
|
46 |
+#endif
|
|
47 |
|
|
48 |
START_TEST(test_ulfius_follow_redirect)
|
|
49 |
{
|
|
50 |
@@ -1389,8 +1393,10 @@
|
|
51 |
tcase_add_test(tc_core, test_ulfius_utf8_ignored);
|
|
52 |
tcase_add_test(tc_core, test_ulfius_endpoint_callback_position);
|
|
53 |
tcase_add_test(tc_core, test_ulfius_MHD_set_response_with_other_free);
|
|
54 |
+#if 0
|
|
55 |
tcase_add_test(tc_core, test_ulfius_send_smtp);
|
|
56 |
tcase_add_test(tc_core, test_ulfius_send_rich_smtp);
|
|
57 |
+#endif
|
|
58 |
tcase_add_test(tc_core, test_ulfius_follow_redirect);
|
|
59 |
#ifndef U_DISABLE_GNUTLS
|
|
60 |
tcase_add_test(tc_core, test_ulfius_server_ca_trust);
|