mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Disable parts of test_protover_all_supported() that cause fatal exceptions when ALL_BUGS_ARE_FATAL
This commit is contained in:
parent
0732513f16
commit
dcb75f00e1
@ -317,6 +317,7 @@ test_protover_all_supported(void *arg)
|
|||||||
tt_assert(protover_all_supported("Fribble=", &msg));
|
tt_assert(protover_all_supported("Fribble=", &msg));
|
||||||
tt_ptr_op(msg, OP_EQ, NULL);
|
tt_ptr_op(msg, OP_EQ, NULL);
|
||||||
|
|
||||||
|
#ifndef ALL_BUGS_ARE_FATAL
|
||||||
/* If we get a completely unparseable list, protover_all_supported should
|
/* If we get a completely unparseable list, protover_all_supported should
|
||||||
* hit a fatal assertion for BUG(entries == NULL). */
|
* hit a fatal assertion for BUG(entries == NULL). */
|
||||||
tor_capture_bugs_(1);
|
tor_capture_bugs_(1);
|
||||||
@ -328,9 +329,10 @@ test_protover_all_supported(void *arg)
|
|||||||
tor_capture_bugs_(1);
|
tor_capture_bugs_(1);
|
||||||
tt_assert(protover_all_supported("Sleen=1-4294967295", &msg));
|
tt_assert(protover_all_supported("Sleen=1-4294967295", &msg));
|
||||||
tor_end_capture_bugs_();
|
tor_end_capture_bugs_();
|
||||||
|
#endif /* !defined(ALL_BUGS_ARE_FATAL) */
|
||||||
|
|
||||||
/* Protocol name too long */
|
/* Protocol name too long */
|
||||||
#ifndef HAVE_RUST // XXXXXX ?????
|
#if !defined(HAVE_RUST) && !defined(ALL_BUGS_ARE_FATAL)
|
||||||
tor_capture_bugs_(1);
|
tor_capture_bugs_(1);
|
||||||
tt_assert(protover_all_supported(
|
tt_assert(protover_all_supported(
|
||||||
"DoSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
"DoSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
@ -338,7 +340,7 @@ test_protover_all_supported(void *arg)
|
|||||||
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
"aaaaaaaaaaaa=1-65536", &msg));
|
"aaaaaaaaaaaa=1-65536", &msg));
|
||||||
tor_end_capture_bugs_();
|
tor_end_capture_bugs_();
|
||||||
#endif /* !defined(HAVE_RUST) */
|
#endif /* !defined(HAVE_RUST) && !defined(ALL_BUGS_ARE_FATAL) */
|
||||||
|
|
||||||
done:
|
done:
|
||||||
tor_end_capture_bugs_();
|
tor_end_capture_bugs_();
|
||||||
|
Loading…
Reference in New Issue
Block a user