summaryrefslogtreecommitdiff
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-06 14:20:28 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-06 14:20:28 +0100
commit0f4e61d1937936cb3e235fcde28d69b703e84196 (patch)
tree26931c96d31b76e60c40a0234e887874699e7c3a /src/gallium/tests
parentd5e741d6d8ebffefa2851677643c6a1aeeb1d431 (diff)
raw/clear: Make it portable.
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/raw/clear.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/tests/raw/clear.c b/src/gallium/tests/raw/clear.c
index 52029008da..84dd780733 100644
--- a/src/gallium/tests/raw/clear.c
+++ b/src/gallium/tests/raw/clear.c
@@ -7,9 +7,9 @@
#include "pipe/p_context.h"
#include "pipe/p_state.h"
#include "pipe/p_defines.h"
-#include <unistd.h> /* for sleep() */
#include "util/u_debug.h" /* debug_dump_surface_bmp() */
+#include "os/os_time.h" /* os_time_sleep() */
enum pipe_format formats[] = {
PIPE_FORMAT_R8G8B8A8_UNORM,
@@ -90,6 +90,7 @@ int main( int argc, char *argv[] )
screen->flush_frontbuffer(screen, surf, window);
- sleep(100);
+ os_time_sleep(100*1000*100);
+
return 0;
}