public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elaine Gibson <ypsvlq@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fooyin] f45: Fix endian-dependent test
Date: Fri, 23 Oct 2026 18:15:13 GMT	[thread overview]
Message-ID: <179277931350.1.18094183292667239148.rpms-fooyin-cda03dd2e52f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fooyin
Branch : f45
Commit : cda03dd2e52fd7542bed252a029a7a30b914919d
Author : Elaine Gibson <ypsvlq@gmail.com>
Date   : 2026-10-23T19:14:34+01:00
Stats  : +32/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fooyin/c/cda03dd2e52fd7542bed252a029a7a30b914919d?branch=f45

Log:
Fix endian-dependent test

---
diff --git a/56dd74893588c4f1d25a9163ce3278bd414755c2.patch b/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
new file mode 100644
index 0000000..9d61140
--- /dev/null
+++ b/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
@@ -0,0 +1,31 @@
+From 56dd74893588c4f1d25a9163ce3278bd414755c2 Mon Sep 17 00:00:00 2001
+From: Luke Taylor <luket@pm.me>
+Date: Fri, 23 Oct 2026 19:03:48 +0100
+Subject: [PATCH] [tests] Fix endian-dependent PCM comparison
+
+Addresses #1811
+---
+ tests/core/engine/ffmpegencodertest.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tests/core/engine/ffmpegencodertest.cpp b/tests/core/engine/ffmpegencodertest.cpp
+index 140115134..83f48be8f 100644
+--- a/tests/core/engine/ffmpegencodertest.cpp
++++ b/tests/core/engine/ffmpegencodertest.cpp
+@@ -28,6 +28,7 @@
+ #include <QDir>
+ #include <QFileInfo>
+ #include <QTemporaryDir>
++#include <QtEndian>
+ 
+ extern "C"
+ {
+@@ -604,6 +605,8 @@ TEST(FFmpegInputTest, PreservesFramesWhenReadSizeIsNotFrameAligned)
+         decoded.append(reinterpret_cast<const char*>(data.data()), static_cast<qsizetype>(data.size()));
+     }
+ 
++    // WAV stores little endian samples, while the decoder returns native endian PCM
++    qFromLittleEndian<int16_t>(pcm.constData(), pcm.size() / sizeof(int16_t), pcm.data());
+     EXPECT_EQ(decoded, pcm);
+ }
+ 

diff --git a/fooyin.spec b/fooyin.spec
index 2fcc6e8..f194196 100644
--- a/fooyin.spec
+++ b/fooyin.spec
@@ -7,6 +7,7 @@ License:        GPL-3.0-or-later
 URL:            https://www.fooyin.org/
 Source0:        https://github.com/fooyin/fooyin/archive/v%{version}/fooyin-%{version}.tar.gz
 Patch0:         https://github.com/fooyin/fooyin/commit/12b32d2c467f4351516ae066c1204b8867df4e94.patch
+Patch1:         https://github.com/fooyin/fooyin/commit/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
 
 ExcludeArch:    %{ix86}
 

                 reply	other threads:[~2026-10-23 18:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179277931350.1.18094183292667239148.rpms-fooyin-cda03dd2e52f@fedoraproject.org \
    --to=ypsvlq@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox