Message ID | 20221128041948.58339-1-bgray@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | Expand selftest utils | expand |
On Mon, 28 Nov 2022 15:19:41 +1100, Benjamin Gray wrote: > Started this when writing tests for a feature I'm working on, needing a way to > read/write numbers to system files. After writing some utils to safely handle > file IO and parsing, I realised I'd made the ~6th file read/write implementation > and only(?) number parser that checks all the failure modes when expecting to > parse a single number from a file. > > So these utils ended up becoming this series. I also modified some other test > utils I came across while doing so. My understanding is selftests are not expected > to be backported, so I wasn't concerned about only introducing new utils and leaving > the existing implementations be. > > [...] Patches 1 & 2 applied to powerpc/next. [1/7] selftests/powerpc: Use mfspr/mtspr macros https://git.kernel.org/powerpc/c/aecfd680099ba518c34dff2941017c5aa97def52 [2/7] selftests/powerpc: Add ptrace setup_core_pattern() null-terminator https://git.kernel.org/powerpc/c/94ba4f2c33f42dae7813dc169a177e922a39560c cheers