Fix support of --count from command line

expedite would never exit after N loops
This commit is contained in:
Jean-Philippe Andre 2014-10-22 15:49:25 +09:00
parent c6353fc5e1
commit 474cf5c88b
3 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ const char *profile = "n800";
const char *choosen_engine = NULL; const char *choosen_engine = NULL;
int win_w = 720, win_h = 420; int win_w = 720, win_h = 420;
int loops = LOOPS; int loops = LOOPS;
int one_test = 0;
Eina_Bool fullscreen = EINA_FALSE; Eina_Bool fullscreen = EINA_FALSE;
Eina_Bool cmp_report = EINA_FALSE; Eina_Bool cmp_report = EINA_FALSE;
@ -1322,6 +1323,7 @@ main(int argc, char **argv)
} }
else if (test > 0) else if (test > 0)
{ {
one_test = 1;
ui_num(test); ui_num(test);
} }

View File

@ -47,6 +47,7 @@ extern "C"
extern Evas *evas; extern Evas *evas;
extern int win_w, win_h; extern int win_w, win_h;
extern int loops; extern int loops;
extern int one_test;
extern const char *choosen_engine; extern const char *choosen_engine;
extern Eina_Bool fullscreen; extern Eina_Bool fullscreen;
extern Eina_Bool cmp_report; extern Eina_Bool cmp_report;

View File

@ -514,6 +514,7 @@ ui_num(int n)
if (!mi->test) if (!mi->test)
return; return;
menu_sel = n; menu_sel = n;
if (one_test) test_item = menu_sel;
_ui_select(); _ui_select();
} }
} }
@ -724,7 +725,7 @@ ui_fps(double fps)
test_item++; test_item++;
mi = eina_list_nth(menu, test_item); mi = eina_list_nth(menu, test_item);
if (!mi->test) if (one_test || !mi->test)
{ {
char datestr[1024]; char datestr[1024];
struct tm *tim; struct tm *tim;