mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-03 05:28:00 +02:00
check: Test --define-variable corner cases
This commit is contained in:
parent
397d414a6a
commit
31a9f900e1
1 changed files with 9 additions and 0 deletions
|
|
@ -14,3 +14,12 @@ case ${MACHTYPE} in
|
|||
run_test --define-variable=includedir=/includedir/ --cflags simple
|
||||
;;
|
||||
esac
|
||||
|
||||
# Spaces before/after the variable name and value should be stripped
|
||||
RESULT="bar"
|
||||
run_test --define-variable=' foo = bar ' --variable=foo simple
|
||||
|
||||
# Should fail when no value set
|
||||
EXPECT_RETURN=1
|
||||
RESULT="--define-variable argument does not have a value for the variable"
|
||||
run_test --define-variable=foo= --variable=foo simple
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue