[LTP] [PATCH v4 28/31] testcases: sysfs: Add sys_hugepages02

Petr Vorel pvorel@suse.cz
Thu Sep 3 17:38:30 CEST 2026


> Hi!
> > ...
> > > +	if (meminfo_val == sysfs_val) {
> > > +		tst_res(TPASS, "%s: /proc/meminfo (%ld) == %s (%ld)",
> > > +			what, meminfo_val, attr, sysfs_val);
> > > +	} else {
> > > +		tst_res(TFAIL, "%s: /proc/meminfo (%ld) != %s (%ld)",
> > > +			what, meminfo_val, attr, sysfs_val);
> > > +	}
> > > +}

> > It'd be nice if TST_EXP_EQ_LI() would allow to pass string as the other
> > TST_EXP_*() macros do. That's of course outside of the scope of this patchset
> > (if worth of improving at all).

> I had that same idea, but again I've limited number of library changes
> in that patchset, it's large enough as it is.

Sure, all the big patchsets with test coverage should get merged before release,
these are details. But I'm glad you see it the same way (although some people
already complain about too many macros, good doc is important).

Kind regards,
Petr


More information about the ltp mailing list