All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v1] tst_sys_conf.c: Report TCONF if read path trigger error such as EOPNOTSUPP
@ 2025-09-02 13:51 Wei Gao via ltp
  2025-09-03  8:43 ` Cyril Hrubis
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wei Gao via ltp @ 2025-09-02 13:51 UTC (permalink / raw)
  To: ltp

We encounter EOPNOTSUPP error when read path in old sle power test env, the reason is
hugepages are disabled. Detail error information such as:
TEST cpuset02:
tst_sys_conf.c:103: TBROK: Failed to read anything from '/proc/sys/vm/nr_hugepages': EOPNOTSUPP (95)

Signed-off-by: Wei Gao <wegao@suse.com>
---
 lib/tst_sys_conf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/tst_sys_conf.c b/lib/tst_sys_conf.c
index 80cd83569..30b0b67a8 100644
--- a/lib/tst_sys_conf.c
+++ b/lib/tst_sys_conf.c
@@ -99,7 +99,8 @@ int tst_sys_conf_save(const struct tst_path_val *conf)
 		if (conf->flags & TST_SR_IGNORE_ERR)
 			return 1;
 
-		tst_brk(TBROK | TERRNO, "Failed to read anything from '%s'",
+		ttype = conf->flags ? TBROK : TCONF;
+		tst_brk(ttype | TERRNO, "Failed to read anything from '%s'",
 			conf->path);
 	}
 
-- 
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-10 11:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 13:51 [LTP] [PATCH v1] tst_sys_conf.c: Report TCONF if read path trigger error such as EOPNOTSUPP Wei Gao via ltp
2025-09-03  8:43 ` Cyril Hrubis
2025-09-03 10:01 ` Martin Doucha
2025-09-04  1:58 ` [LTP] [PATCH v2 0/2] tst_test.c: Add hugepage check in prepare_and_mount_hugetlb_fs Wei Gao via ltp
2025-09-04  1:58   ` [LTP] [PATCH v2 1/2] " Wei Gao via ltp
2025-09-04  1:58   ` [LTP] [PATCH v2 2/2] cpuset02.c: Remove unnecessary .save_restore setting Wei Gao via ltp
2025-09-10 11:15   ` [LTP] [PATCH v2 0/2] tst_test.c: Add hugepage check in prepare_and_mount_hugetlb_fs Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.