chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abbreviate stall types; allow some commod-results-processor modes to work without...
[ypp-sc-tools.db-test.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index ca2428d874d9a7b87ee0f3b231fc8f37bb7594c8..80f176ad567da72d6e87e6bda2b3aaba0ac0a714 100644
(file)
--- a/
pctb/pages.c
+++ b/
pctb/pages.c
@@
-322,7
+322,8
@@
static void wait_for_stability(Snapshot **output,
/* waits longer if we're going to return an image identical to previously
* if previously==0, all images are considered identical to it */
/* waits longer if we're going to return an image identical to previously
* if previously==0, all images are considered identical to it */
- char *doing= masprintf(fmt,al);
+ char *doing;
+ sysassert( vasprintf(&doing,fmt,al) >=0 );
progress("%s",doing);
debugf("PAGING wait_for_stability"
progress("%s",doing);
debugf("PAGING wait_for_stability"
@@
-543,6
+544,7
@@
timestamp();
send_key(XK_w);
send_key(XK_Return);
sync_after_input();
send_key(XK_w);
send_key(XK_Return);
sync_after_input();
+ sysassert(! usleep(1000000) );
}
void take_screenshots(void) {
}
void take_screenshots(void) {
@@
-694,7
+696,7
@@
void find_yppclient_window(void) {
#define ASSIGN(what, start, end) \
what= masprintf("%.*s", (end)-(start), start); \
#define ASSIGN(what, start, end) \
what= masprintf("%.*s", (end)-(start), start); \
- if (o_##what) REQUIRE( !strc
mp(o_##what, what) );
\
+ if (o_##what) REQUIRE( !strc
asecmp(o_##what, what) );
\
else
ASSIGN(ocean, spc1 + S(onthe), (title + len) - S(suffix));
else
ASSIGN(ocean, spc1 + S(onthe), (title + len) - S(suffix));
@@
-712,8
+714,9
@@
void find_yppclient_window(void) {
if (children1) XFree(children1);
}
if (nfound>1)
if (children1) XFree(children1);
}
if (nfound>1)
- fatal("Found several possible YPP clients."
- " Close one, or specify the windowid with --window-id.\n");
+ fatal("Found several possible YPP clients. Close one,\n"
+ " disambiguate with --pirate or --ocean,"
+ " or specify --window-id.\n");
if (nfound<1)
fatal("Did not find %sYPP client."
" Use --window-id and/or report this as a fault.\n",
if (nfound<1)
fatal("Did not find %sYPP client."
" Use --window-id and/or report this as a fault.\n",