aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/os_SUITE.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-06-03 08:53:26 +0000
committerErlang/OTP <[email protected]>2010-06-03 08:53:26 +0000
commit2d0fe96a13e51f61fbe9cc66b71ab42a690d3542 (patch)
tree5eb3d2278cf96531447b1cef5f6c9ab97ff79197 /lib/kernel/test/os_SUITE.erl
parent195b98cabf710fd99a58386c36072afc9b4b235f (diff)
parent5f1628d70b210424a8d83f89c707815059c6710b (diff)
downloadotp-2d0fe96a13e51f61fbe9cc66b71ab42a690d3542.tar.gz
otp-2d0fe96a13e51f61fbe9cc66b71ab42a690d3542.tar.bz2
otp-2d0fe96a13e51f61fbe9cc66b71ab42a690d3542.zip
Merge branch 'pan/otp_3626_win_find_executable' into dev
* pan/otp_3626_win_find_executable: Teach os.erl to find executable names with extension (i.e. .exe) on windows OTP-3626 os:find_executable bug on Windows os:find_executable can now be fed with the complete name of the executable on Windows and still find it. I.e os:find_executable("werl.exe") will work as os:find_executable("werl").
Diffstat (limited to 'lib/kernel/test/os_SUITE.erl')
-rw-r--r--lib/kernel/test/os_SUITE.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/kernel/test/os_SUITE.erl b/lib/kernel/test/os_SUITE.erl
index 6a3534b094..ace9501d18 100644
--- a/lib/kernel/test/os_SUITE.erl
+++ b/lib/kernel/test/os_SUITE.erl
@@ -137,6 +137,13 @@ find_executable(Config) when is_list(Config) ->
?line find_exe(Abin, "my_ar", ".exe", Path),
?line find_exe(Abin, "my_ascii", ".com", Path),
?line find_exe(Abin, "my_adb", ".bat", Path),
+ %% OTP-3626 find names of executables given with extension
+ ?line find_exe(Abin, "my_ar.exe", "", Path),
+ ?line find_exe(Abin, "my_ascii.com", "", Path),
+ ?line find_exe(Abin, "my_adb.bat", "", Path),
+ ?line find_exe(Abin, "my_ar.EXE", "", Path),
+ ?line find_exe(Abin, "my_ascii.COM", "", Path),
+ ?line find_exe(Abin, "MY_ADB.BAT", "", Path),
%% Search for programs in Abin (second element in PATH).
?line find_exe(Abin, "my_ar", ".exe", Path),