4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Jon Turney edda3aeaf5
Cygwin: testsuite: Fix cygload test
Use cygrun to isolate the cygload test from the current DLL, which
allows it to pass.
2023-08-08 14:15:39 +01:00

18 lines
334 B
Bash
Executable File

#!/bin/dash
#
# test driver to run $1 in the appropriate environment
#
# $1 = test executable to run
exe=$1
export PATH="$runtime_root:${PATH}"
if [ "$1" = "./mingw/cygload" ]
then
windows_runtime_root=$(cygpath -m $runtime_root)
$cygrun "$exe -v -cygwin $windows_runtime_root/cygwin1.dll"
else
cygdrop $cygrun $exe
fi