[farsight2/master] Disable stund test unless STUND is defined
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:42 PST 2008
---
tests/check/transmitter/nice.c | 9 ++++++---
tests/check/transmitter/rawudp.c | 11 +++++++----
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/tests/check/transmitter/nice.c b/tests/check/transmitter/nice.c
index 620eb93..9dabc95 100644
--- a/tests/check/transmitter/nice.c
+++ b/tests/check/transmitter/nice.c
@@ -751,9 +751,12 @@ nicetransmitter_suite (void)
tcase_add_test (tc_chain, test_nicetransmitter_preferred_candidates);
suite_add_tcase (s, tc_chain);
- tc_chain = tcase_create ("nicetransmitter-stund");
- tcase_add_test (tc_chain, test_nicetransmitter_stund);
- suite_add_tcase (s, tc_chain);
+ if (g_getenv ("STUND"))
+ {
+ tc_chain = tcase_create ("nicetransmitter-stund");
+ tcase_add_test (tc_chain, test_nicetransmitter_stund);
+ suite_add_tcase (s, tc_chain);
+ }
tc_chain = tcase_create ("nicetransmitter-force-candidates");
tcase_add_test (tc_chain, test_nicetransmitter_force_candidates);
diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index c5ae4f5..7135acb 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -694,10 +694,13 @@ rawudptransmitter_suite (void)
tcase_add_test (tc_chain, test_rawudptransmitter_run_invalid_stun);
suite_add_tcase (s, tc_chain);
- tc_chain = tcase_create ("rawudptransmitter-stund");
- tcase_set_timeout (tc_chain, 15);
- tcase_add_test (tc_chain, test_rawudptransmitter_run_stund);
- suite_add_tcase (s, tc_chain);
+ if (g_getenv ("STUND"))
+ {
+ tc_chain = tcase_create ("rawudptransmitter-stund");
+ tcase_set_timeout (tc_chain, 15);
+ tcase_add_test (tc_chain, test_rawudptransmitter_run_stund);
+ suite_add_tcase (s, tc_chain);
+ }
tc_chain = tcase_create ("rawudptransmitter-local-candidates");
tcase_add_test (tc_chain, test_rawudptransmitter_run_local_candidates);
--
1.5.6.5
More information about the farsight-commits
mailing list