From f26cc54181b0c0e3f71e23d6921b723b4827e737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E4=BB=B2=E4=BC=9F?= Date: Mon, 27 May 2024 09:26:14 +0800 Subject: [PATCH] fix loongarch64 test error --- fix_loongarch_test_error.patch | 34 ++++++++++++++++++++++++++++++++++ util-linux.spec | 9 ++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 fix_loongarch_test_error.patch diff --git a/fix_loongarch_test_error.patch b/fix_loongarch_test_error.patch new file mode 100644 index 0000000..33402c2 --- /dev/null +++ b/fix_loongarch_test_error.patch @@ -0,0 +1,34 @@ +diff -Naur util-linux-2.39.1.bak/tests/ts/fincore/count util-linux-2.39.1/tests/ts/fincore/count +--- util-linux-2.39.1.bak/tests/ts/fincore/count 2024-05-27 09:06:52.130632958 +0800 ++++ util-linux-2.39.1/tests/ts/fincore/count 2024-05-27 09:07:46.651036787 +0800 +@@ -107,6 +107,7 @@ + OUT_COLUMNS="PAGES,SIZE,FILE" + else + TS_EXPECTED+=".nosize" ++ TS_EXPECTED_ERR+=".nosize" + OUT_COLUMNS="PAGES,FILE" + fi + +@@ -119,11 +120,11 @@ + INPUT= + input= + ++ts_log_both "[ NO EXCITING FILE ]" + { + input=no_such_file + INPUT="${INPUT} ${input}" + +- ts_log_both "[ NO EXCITING FILE ]" + $TS_CMD_FINCORE --output $OUT_COLUMNS --bytes --noheadings $input + footer "$?" + } >> $TS_OUTPUT 2>> $TS_ERRLOG +@@ -220,8 +221,8 @@ + "oflag=append seek=$hole_count" + } >> $TS_OUTPUT 2>> $TS_ERRLOG + ++ts_log_both "[ MULTIPLE FILES ]" + { +- ts_log_both "[ MULTIPLE FILES ]" + $TS_CMD_FINCORE --output $OUT_COLUMNS --bytes $INPUT + footer "$?" + } >> $TS_OUTPUT 2>> $TS_ERRLOG diff --git a/util-linux.spec b/util-linux.spec index a3d455d..1ba47e7 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 7 +Release: 8 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -31,6 +31,7 @@ Patch6009: backport-tests-test_mkfds-netlink-pass-a-correct-file-descrip.pa Patch6010: backport-tests-functions.sh-add-a-helper-funcion-making-a-dev.patch Patch6011: backport-tests-lsfd-don-t-refer-on-the-line-follwoing-the-use.patch Patch6012: backport-lsfd-fix-memory-leak-in-append_filter_expr.patch +Patch6013: fix_loongarch_test_error.patch Patch9000: SKIPPED-no-root-permissions-test.patch %ifarch sw_64 @@ -415,6 +416,12 @@ fi %endif %changelog +* Mon May 27 2024 shenzhongwei - 2.39.1-8 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix loongarch test error + * Thu Apr 25 2024 liuh - 2.39.1-7 - Type:bugfix - CVE:NA -- Gitee