summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-05-23 12:23:05 +0100
committerPauli <pauli@openssl.org>2023-06-16 09:26:27 +1000
commita3a51d6ec38a8c2fd88e7c64c2f21632e55cbbdf (patch)
tree9137e77960adfbce0c63d39ebbec2ed068eabfea /test
parent81b400cf900c530e170a1488222191c5568f6b2d (diff)
QUIC TXP: Refactor status output to use an extensible structure
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21029)
Diffstat (limited to 'test')
-rw-r--r--test/quic_txp_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/quic_txp_test.c b/test/quic_txp_test.c
index 7842486a3f..8da1b05128 100644
--- a/test/quic_txp_test.c
+++ b/test/quic_txp_test.c
@@ -1227,7 +1227,8 @@ static void skip_padding(struct helper *h)
static int run_script(const struct script_op *script)
{
- int testresult = 0, have_helper = 0, sent_ack_eliciting = 0;
+ int testresult = 0, have_helper = 0;
+ QUIC_TXP_STATUS status;
struct helper h;
const struct script_op *op;
@@ -1239,7 +1240,7 @@ static int run_script(const struct script_op *script)
switch (op->opcode) {
case OPK_TXP_GENERATE:
if (!TEST_int_eq(ossl_quic_tx_packetiser_generate(h.txp, (int)op->arg0,
- &sent_ack_eliciting),
+ &status),
TX_PACKETISER_RES_SENT_PKT))
goto err;
@@ -1248,7 +1249,7 @@ static int run_script(const struct script_op *script)
break;
case OPK_TXP_GENERATE_NONE:
if (!TEST_int_eq(ossl_quic_tx_packetiser_generate(h.txp, (int)op->arg0,
- &sent_ack_eliciting),
+ &status),
TX_PACKETISER_RES_NO_PKT))
goto err;