# Re: \[PATCH v7 5/5\] lib/test\_printf.c: add test cases for '%pD'

- From: Petr Mladek \<pmladek@suse.com\>
- Date: 2021-07-21 14:06:56 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/07/210725
- Thread: https://ratatoskr.run/linux-doc/2021/07/209931/t.md

```text
On Thu 2021-07-15 09:14:07, Jia He wrote:
> After the behaviour of specifier '%pD' is changed to print the full path
> of struct file, the related test cases are also updated.
> 
> Given the full path string of '%pD' is prepended from the end of the scratch
> buffer, the check of "wrote beyond the nul-terminator" should be skipped
> for '%pD'.
> 
> Parameterize the new using_scratch_space in __test(), do_test() and wrapper
> macros to skip the test case mentioned above,
> 
> Signed-off-by: Jia He <redacted>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Petr Mladek <pmladek@suse.com>

Best Regards,
Petr
```
