Please sign in to comment.
open08: use tst_get_bad_addr from LTP API
From open(2) manual, pathname(unmapped_fname) points outside the accessible address space, then test will result in failure with EFAULT. LTP tst_get_bad_addr() maps a contiguous virtual memory region by using PROT_NONE to provide page not be accessed too. Here we can take use of it to achieve the same purpose. Also fix code comments to match open(2) maunal precisely. Signed-off-by: Li Wang <email@example.com> Acked-by: Jan Stancek <firstname.lastname@example.org>
- Loading branch information...
Showing with 4 additions and 14 deletions.