test/test-automation/src/runner/runner.c
changeset 5831 d0f31485bd81
parent 5830 e1a6cc820772
child 5832 29fd178167c6
equal deleted inserted replaced
5830:e1a6cc820772 5831:d0f31485bd81
  1207     		  exit(1);
  1207     		  exit(1);
  1208     	  }
  1208     	  }
  1209 
  1209 
  1210     	  // \todo User given string should be handled as a string
  1210     	  // \todo User given string should be handled as a string
  1211     	  // representing a hex digit
  1211     	  // representing a hex digit
  1212     	  userExecKey = atoi(execKeyString);
  1212     	  //userExecKey = atoi(execKeyString);
       
  1213 
       
  1214     	  int ret = sscanf(execKeyString, "%llx", &userExecKey);
       
  1215     	  if(ret != 1) {
       
  1216     		  fprintf(stderr, "Error: Failed to parse exec-key option");
       
  1217     		  exit(1);
       
  1218     	  }
       
  1219 
       
  1220     	  printf("%Lx", userExecKey);
  1213       }
  1221       }
  1214       else if(SDL_strcmp(arg, "--test") == 0 || SDL_strcmp(arg, "-t") == 0) {
  1222       else if(SDL_strcmp(arg, "--test") == 0 || SDL_strcmp(arg, "-t") == 0) {
  1215     	  only_selected_test = 1;
  1223     	  only_selected_test = 1;
  1216     	  char *testName = NULL;
  1224     	  char *testName = NULL;
  1217 
  1225