summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-blscfg-default-title.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2018-06-12 12:18:32 +0200
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-06-18 10:56:27 +1000
commit761398a5dce21926a68e016627825b9010edff7e (patch)
treef4f2c0bd4af47e831dd3818e775b5a8402a43503 /test/parser/test-grub2-blscfg-default-title.c
parent0e9f4d38b19c2d7557528ef5b11b93377525cd55 (diff)
downloadtalos-petitboot-761398a5dce21926a68e016627825b9010edff7e.tar.gz
talos-petitboot-761398a5dce21926a68e016627825b9010edff7e.zip
test/parser: Make parser_scandir() ignore files with path len less than dir
Both the test files and directories added into the test harness are stored into the same file list. So the parser_scandir() stub compares the absolute file path of the files and the directory to scan, to know if a file belongs to the directory. Files whose absolute file path length isn't bigger than the directory to scan should just be ignored, since it means they can't be from that dir. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/test-grub2-blscfg-default-title.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud