[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
panic-test fail as user root
From: |
xiaomeng wang |
Subject: |
panic-test fail as user root |
Date: |
Fri, 12 Apr 2024 17:35:41 +0800 |
Hi,
When I compile as root, panic-test reports an error:
FAIL: testsuite/panic-tests.sh
Testsuite summary for GNU sed 4.9
============================================================================
# TOTAL: 68
# PASS: 58
# SKIP: 9
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
The following error occurs when viewing the test-suite.log file:
FAIL: testsuite/panic-tests
===========================
--- exp-err-temp 2024-04-12 09:24:11.900000512 +0800
+++ err-temp 2024-04-12 09:24:11.900000512 +0800
@@ -1 +0,0 @@
-sed: couldn't open temporary file
FAIL testsuite/panic-tests.sh (exit status: 1)
This is because the write permission cannot be canceled after the chmod a-w
a command is run as the root user. As a result, the test fails. So this
part of the test should skip the root user.
Please review this patch. Thanks!
0001-tests-fix-panic-test-fail-as-user-root.patch
Description: Binary data
- panic-test fail as user root,
xiaomeng wang <=