mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-01 09:08:03 +02:00
The run_test shell function was running pkg-config with arguments stored in an environment variable. This has problems when trying to pass shell special characters with the proper escaping. Instead, pass the arguments to the test where they can maintain correct formatting through use of the special variable "$@".
24 lines
569 B
Bash
Executable file
24 lines
569 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
. ${srcdir}/common
|
|
|
|
# all of these should fail, but when '=' or ' ' aren't used consistently
|
|
# between the two options, broken popt sets the version to compare to be
|
|
# "a=b"
|
|
EXPECT_RETURN=1
|
|
RESULT=""
|
|
run_test --define-variable=a=b --atleast-pkgconfig-version=999.999
|
|
|
|
EXPECT_RETURN=1
|
|
RESULT=""
|
|
run_test --define-variable=a=b --atleast-pkgconfig-version 999.999
|
|
|
|
EXPECT_RETURN=1
|
|
RESULT=""
|
|
run_test --define-variable a=b --atleast-pkgconfig-version 999.999
|
|
|
|
EXPECT_RETURN=1
|
|
RESULT=""
|
|
run_test --define-variable a=b --atleast-pkgconfig-version=999.999
|