Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed the exec-key option.

  • Loading branch information
mkauppila committed Aug 14, 2011
1 parent b9b3996 commit 1342716258bb0afe26ee4d452ce7ca34ea746c70
Showing with 9 additions and 1 deletion.
  1. +9 −1 test/test-automation/src/runner/runner.c
@@ -1209,7 +1209,15 @@ ParseOptions(int argc, char *argv[])

// \todo User given string should be handled as a string
// representing a hex digit
userExecKey = atoi(execKeyString);
//userExecKey = atoi(execKeyString);

int ret = sscanf(execKeyString, "%llx", &userExecKey);
if(ret != 1) {
fprintf(stderr, "Error: Failed to parse exec-key option");
exit(1);
}

printf("%Lx", userExecKey);
}
else if(SDL_strcmp(arg, "--test") == 0 || SDL_strcmp(arg, "-t") == 0) {
only_selected_test = 1;

0 comments on commit 1342716

Please sign in to comment.