From 53e255204c9606f126123ee30cb21456350fd285 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 11 Oct 2017 17:01:19 +0200 Subject: [PATCH] tests: add a test case for #146 --- tests/sysroot.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/sysroot.sh b/tests/sysroot.sh index 7f45270..ec2e0bb 100755 --- a/tests/sysroot.sh +++ b/tests/sysroot.sh @@ -4,7 +4,17 @@ tests_init \ cflags \ - variable + variable \ + do_not_eat_slash \ + +do_not_eat_slash_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + export PKG_CONFIG_SYSROOT_DIR="/" + atf_check \ + -o inline:"-fPIC -I/test/include/foo \n" \ + pkgconf --cflags baz +} cflags_body() {