From ffc62c792c9a5196cb4ce7a353287dfe20db6524 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 9 Oct 2026 14:12:35 +0200 Subject: New upstream version 3.3.0~beta1+dfsg --- tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp') diff --git a/tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp b/tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp index 1d666113..c2b3b45b 100644 --- a/tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp +++ b/tests/unit/jtty/jtty_cpp_n1mm_smoke.cpp @@ -6,7 +6,7 @@ extern "C" void genjtty_atoms_c (Jtty::NativeAtomDescriptor const atoms[], int natoms, int tones[], int* nsym, int* status); -extern "C" void genjtty_profile_ (char*, int const*, int*, int*, fortran_charlen_t); +extern "C" void genjtty_profile_ (char*, int const*, int*, int*, int*, int const*, fortran_charlen_t); extern "C" int jtty_cpp_n1mm_smoke (int tones[], int* nsym) { @@ -22,7 +22,7 @@ extern "C" int jtty_cpp_n1mm_smoke (int tones[], int* nsym) return status; } -extern "C" int jtty_cpp_cq_smoke (int tones[], int* nsym, char text[], int chained) +extern "C" int jtty_cpp_cq_smoke (int tones[], int* nsym, char text[]) { Jtty::NativeMacroContext const context {QStringLiteral ("K1ABC"), {}, 0}; auto const compiled = Jtty::compileNativeMacro ( @@ -30,7 +30,7 @@ extern "C" int jtty_cpp_cq_smoke (int tones[], int* nsym, char text[], int chain *nsym = 0; int status = static_cast (Jtty::NativeEncodeStatus::InvalidDescriptor); if (compiled.isNative ()) { - auto const frame = Jtty::transmitFrame (compiled.text, chained != 0).toLatin1 (); + auto const frame = Jtty::transmitFrame (compiled.text).toLatin1 (); std::copy (frame.cbegin (), frame.cend (), text); genjtty_atoms_c (compiled.atoms.constData (), compiled.atoms.size (), tones, nsym, &status); @@ -59,18 +59,22 @@ extern "C" int jtty_cpp_rtty_smoke (int tones[], int* nsym) } genjtty_atoms_c (compiled.atoms.constData (), compiled.atoms.size (), tones, nsym, &status); if (status != static_cast (Jtty::NativeEncodeStatus::Ok) || *nsym <= 0) return status; - auto text = Jtty::transmitFrame (example.raw, false).toLatin1 (); + auto text = Jtty::transmitFrame (example.raw).toLatin1 (); int packedSymbols {}; + std::array frameStarts {}; + int const isFinal = 1; auto profile = static_cast (context.exchangeProfile); - genjtty_profile_ (text.data (), &profile, packedTones.data (), &packedSymbols, text.size ()); + genjtty_profile_ (text.data (), &profile, packedTones.data (), &packedSymbols, + frameStarts.data (), &isFinal, text.size ()); if (packedSymbols != *nsym || !std::equal (tones, tones + *nsym, packedTones.cbegin ()) || - text != Jtty::transmitFrame (example.canonical, false).toLatin1 ()) { + text != Jtty::transmitFrame (example.canonical).toLatin1 ()) { return static_cast (Jtty::NativeEncodeStatus::InvalidDescriptor); } - text = Jtty::transmitFrame (example.raw, false).toLatin1 (); + text = Jtty::transmitFrame (example.raw).toLatin1 (); profile = static_cast (Jtty::NativeExchangeProfile::None); - genjtty_profile_ (text.data (), &profile, packedTones.data (), &packedSymbols, text.size ()); - if (packedSymbols != 2 * *nsym || text != Jtty::transmitFrame (example.raw, false).toLatin1 ()) { + genjtty_profile_ (text.data (), &profile, packedTones.data (), &packedSymbols, + frameStarts.data (), &isFinal, text.size ()); + if (packedSymbols != 2 * *nsym || text != Jtty::transmitFrame (example.raw).toLatin1 ()) { return static_cast (Jtty::NativeEncodeStatus::InvalidDescriptor); } } -- cgit v1.2.3