summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-04-30 14:56:27 +0800
committerKhem Raj <raj.khem@gmail.com>2019-05-02 14:13:57 -0700
commitfd793c0adb080a9f79a7315a63aff2c0840ac614 (patch)
treef6fdf3e90b6d4f2dc78e8154a7e45c6ddca5b2dc /meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
parentf1cc8bf017a316ab317e158d17f92ad5fa58df03 (diff)
downloadmeta-openembedded-fd793c0adb080a9f79a7315a63aff2c0840ac614.tar.gz
openhpi: update openhpi-fix-testfail-errors.patch
The openhpi-fix-testfail-errors.patch tries to fix 2 saftest failures. But the second fix is not correct. It should not return false when there is no surrogate pairs since for the code points in UTF-16 Basic Multilingual Plane (BMP), there is no need surrogate pairs. We should update saftest case to fix this failure. Also add more description for the first fix. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch')
-rw-r--r--meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
deleted file mode 100644
index 60e2e79191..0000000000
--- a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1Fix for saftest failures.
2
3Upstream-Status: Pending
4
5Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
6
7Index: openhpi-3.6.1/openhpid/safhpi.c
8===================================================================
9--- openhpi-3.6.1.orig/openhpid/safhpi.c
10+++ openhpi-3.6.1/openhpid/safhpi.c
11@@ -1933,7 +1933,7 @@ SaErrorT SAHPI_API saHpiSensorThresholds
12 oh_release_domain(d); /* Unlock domain */
13
14 OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv,
15- ResourceId, SensorNum, SensorThresholds);
16+ ResourceId, SensorNum, &tmp);
17 oh_release_handler(h);
18
19 return rv;
20Index: openhpi-3.6.1/utils/sahpi_struct_utils.c
21===================================================================
22--- openhpi-3.6.1.orig/utils/sahpi_struct_utils.c
23+++ openhpi-3.6.1/utils/sahpi_struct_utils.c
24@@ -3861,6 +3861,9 @@ SaHpiBoolT oh_valid_textbuffer(SaHpiText
25 /* found a unpaired surrogate */
26 return SAHPI_FALSE;
27 }
28+ } else {
29+ /*the first 2 bytes wrong*/
30+ return SAHPI_FALSE;
31 }
32 }
33 break;