mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
build: Avoid failure of the Java tests in Cygwin-based environments.
* examples/test (prog): In Cygwin-based environments, convert the class path element to native Windows syntax.
This commit is contained in:
committed by
Paul Eggert
parent
df2ed793af
commit
5209a67035
@@ -54,6 +54,15 @@ if test -x "$abs_medir/$me"; then
|
||||
elif test -f "$abs_medir/$me.class"; then
|
||||
prog ()
|
||||
{
|
||||
# In Cygwin-based environments, the Java implementation still is a
|
||||
# native Windows Java. Therefore we need to convert the elements
|
||||
# of the class path from Cygwin syntax to native Windows syntax.
|
||||
# The javaexec.sh script does not do this for us.
|
||||
case `uname -s` in
|
||||
CYGWIN*)
|
||||
abs_medir=`cygpath -w "$abs_medir"`
|
||||
;;
|
||||
esac
|
||||
"$SHELL" "$cwd/javaexec.sh" -cp "$abs_medir" "$me" "$@"
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user