summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch68
-rw-r--r--meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb1
2 files changed, 69 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch b/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch
new file mode 100644
index 0000000000..0866851537
--- /dev/null
+++ b/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch
@@ -0,0 +1,68 @@
1From 18e5b22a71f85091127cc063db79c8df687c582c Mon Sep 17 00:00:00 2001
2From: Ankur Tyagi <ankur.tyagi85@gmail.com>
3Date: Thu, 20 Nov 2025 16:01:58 +1300
4Subject: [PATCH] test: fix operator error
5
6Otherwise test fail with error [: -neq: binary operator expected
7
8Upstream-Status: Submitted [https://github.com/libimobiledevice/libplist/pull/284]
9Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
10---
11 test/json-invalid-types.test | 6 +++---
12 test/ostep-invalid-types.test | 6 +++---
13 2 files changed, 6 insertions(+), 6 deletions(-)
14
15diff --git a/test/json-invalid-types.test b/test/json-invalid-types.test
16index c532316..a21fcd9 100755
17--- a/test/json-invalid-types.test
18+++ b/test/json-invalid-types.test
19@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
20
21 echo "Converting (failure expected)"
22 $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
23-if [ $? -neq 2 ]; then
24+if [ $? -ne 2 ]; then
25 exit 1
26 fi
27
28 echo "Converting (failure expected)"
29 $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
30-if [ $? -neq 2 ]; then
31+if [ $? -ne 2 ]; then
32 exit 2
33 fi
34
35 echo "Converting (failure expected)"
36 $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
37-if [ $? -neq 2 ]; then
38+if [ $? -ne 2 ]; then
39 exit 3
40 fi
41
42diff --git a/test/ostep-invalid-types.test b/test/ostep-invalid-types.test
43index 9222394..240505c 100755
44--- a/test/ostep-invalid-types.test
45+++ b/test/ostep-invalid-types.test
46@@ -14,19 +14,19 @@ export PLIST_OSTEP_DEBUG=1
47
48 echo "Converting (failure expected)"
49 $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o /dev/null
50-if [ $? -neq 2 ]; then
51+if [ $? -ne 2 ]; then
52 exit 1
53 fi
54
55 echo "Converting (failure expected)"
56 $top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o /dev/null
57-if [ $? -neq 2 ]; then
58+if [ $? -ne 2 ]; then
59 exit 2
60 fi
61
62 echo "Converting (failure expected)"
63 $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o /dev/null
64-if [ $? -neq 2 ]; then
65+if [ $? -ne 2 ]; then
66 exit 3
67 fi
68
diff --git a/meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb b/meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb
index 69b9b46d62..17b1d7cfd3 100644
--- a/meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb
+++ b/meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb
@@ -11,6 +11,7 @@ inherit autotools pkgconfig python3native python3targetconfig ptest
11SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136" 11SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
12SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV} \ 12SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV} \
13 file://run-ptest \ 13 file://run-ptest \
14 file://0001-test-fix-operator-error.patch \
14" 15"
15 16
16 17