summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2018-07-29 11:11:19 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2018-07-29 11:11:19 +0100
commit068f78a6fc5df0f99ea0077cf795959ba4699d73 (patch)
tree82eba14ccfb9dde44f6bdca20051ab5275e09aa5 /test
parent87feda1b7f43c6402c760926bbbb67175cde319c (diff)
downloadlibnsfb-068f78a6fc5df0f99ea0077cf795959ba4699d73.tar.gz
libnsfb-068f78a6fc5df0f99ea0077cf795959ba4699d73.tar.bz2
Tests: Don't sleep when using the mem backend.
Diffstat (limited to 'test')
-rw-r--r--test/polystar.c5
-rw-r--r--test/polystar2.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/test/polystar.c b/test/polystar.c
index 136b6aa..a9ac11c 100644
--- a/test/polystar.c
+++ b/test/polystar.c
@@ -118,7 +118,10 @@ int main(int argc, char **argv)
}
nsfb_update(nsfb, &box);
- sleepMilli(100);
+
+ if (fetype != NSFB_SURFACE_RAM) {
+ sleepMilli(400);
+ }
}
/* wait for quit event or timeout */
diff --git a/test/polystar2.c b/test/polystar2.c
index a843f9d..4644ed5 100644
--- a/test/polystar2.c
+++ b/test/polystar2.c
@@ -112,7 +112,10 @@ int main(int argc, char **argv)
sides += 2;
nsfb_update(nsfb, &box);
- sleepMilli(400);
+
+ if (fetype != NSFB_SURFACE_RAM) {
+ sleepMilli(400);
+ }
}
/* wait for quit event or timeout */