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

- From: Andy Shevchenko \<andriy.shevchenko@linux.intel.com\>
- Date: 2021-06-22 14:41:45 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/06/208461
- Thread: https://ratatoskr.run/linux-doc/2021/06/208454/t.md

```text
On Tue, Jun 22, 2021 at 10:06:34PM +0800, 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 to skip the

__test()

> test case mentioned above,

-- 
With Best Regards,
Andy Shevchenko


```
