[LTP] [PATCH v3] Rewrite fcnt14 test

Cyril Hrubis chrubis@suse.cz
Mon Sep 2 15:36:56 CEST 2024


Hi!
> I don't know, is a silent version of EQ_LI really needed? It's a 
> particular use case, where also *FAILED is set, so I don't know...

Contrary I would say that this may be a common pattern when we want to
avoid spamming the test output:

	unsigned int failcnt = 0;

	TST_EXP_EQ_LI_SILENT(..., &failcnt);
	TST_EXP_EQ_LI_SILENT(..., &failcnt);
	TST_EXP_EQ_LI_SILENT(..., &failcnt);
	TST_EXP_EQ_LI_SILENT(..., &failcnt);

	if (!failcnt)
		tst_res(TPASS, "All values were fine");


Anyways, we can as well pull the code to the library when we get a
second user.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list