aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-11-25 14:28:11 +0100
committerLukas Larsson <[email protected]>2010-11-29 11:59:35 +0100
commitb0d50a05e3cebf92d484027407814103a0da6ea6 (patch)
tree1b02d932aff59f2a639e91bf4452c00fa7a75962
parent6693ec7fd21b3325495f1a3dd4139e39f056f790 (diff)
downloadotp-b0d50a05e3cebf92d484027407814103a0da6ea6.tar.gz
otp-b0d50a05e3cebf92d484027407814103a0da6ea6.tar.bz2
otp-b0d50a05e3cebf92d484027407814103a0da6ea6.zip
Update ct_run deprectaion warning to work properly on windows
-rw-r--r--erts/etc/common/ct_run.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/etc/common/ct_run.c b/erts/etc/common/ct_run.c
index 070acd15ed..7aaab716f7 100644
--- a/erts/etc/common/ct_run.c
+++ b/erts/etc/common/ct_run.c
@@ -85,7 +85,7 @@ static char* strsave(char* string);
static void push_words(char* src);
static int run_erlang(char* name, char** argv);
static char* get_default_emulator(char* progname);
-static void print_deprication_warning(char *progname);
+static void print_deprecation_warning(char *progname);
#ifdef __WIN32__
static char* possibly_quote(char* arg);
#endif
@@ -132,7 +132,7 @@ main(int argc, char** argv)
int erl_args;
char** argv0 = argv;
- print_deprication_warning(argv[0]);
+ print_deprecation_warning(argv[0]);
emulator = get_default_emulator(argv[0]);
@@ -440,19 +440,19 @@ static char *simple_basename(char *path)
{
char *ptr;
for (ptr = path; *ptr != '\0'; ++ptr) {
- if (*ptr == '/') {
+ if (*ptr == '/' || *ptr == '\\') {
path = ptr + 1;
}
}
return path;
}
-static void print_deprication_warning(char* progpath)
+static void print_deprecation_warning(char* progpath)
{
char *basename = simple_basename(progpath);
if(strcmp(basename,"run_test") == 0 ||
strcmp(basename, "run_test.exe") == 0) {
- printf("---***---\nDepricated: run_test is depricated and will be removed in R16B,\n please use ct_run instead\n---***---\n");
+ printf("---***---\nDeprecated: run_test is deprecated and will be removed in R16B,\n please use ct_run instead\n---***---\n");
}
}