Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed the exec-key option.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Aug 14, 2011
1 parent b9b3996 commit 1342716
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test-automation/src/runner/runner.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1342716

Please sign in to comment.