-From babcb3f7fdc53c25f2c525eea1704498a19c126d Mon Sep 17 00:00:00 2001
+From eed389c68118fd673a462d7ac6738a1fe3aec217 Mon Sep 17 00:00:00 2001
 From: Alejandro Hernandez <ajhernandez@ti.com>
 Date: Wed, 15 Mar 2017 14:25:20 -0400
 Subject: [PATCH] Add option to run a test indefinitely

 		FD_SET(dev->fd, &fds);
 		ret = select(dev->fd + 1, &fds, NULL, NULL, &timeout);
 
@@ -1497,7 +1497,7 @@ static int pipe_resolve_connectors(struct device *dev, struct pipe_arg *pipe)
 	return 0;
 }
 
-static char optstr[] = "cdD:efM:P:ps:Cvw:";
+static char optstr[] = "cdD:efM:P:ps:Cvw:t";
 
 int main(int argc, char **argv)
 {
@@ -1512,6 +1512,7 @@ int main(int argc, char **argv)
 	char *module = NULL;
 	unsigned int i;
 	unsigned int count = 0, plane_count = 0;

 		default:
 			usage(argv[0]);
 			break;
@@ -2075,7 +2080,7 @@ int main(int argc, char **argv)
 				set_cursors(&dev, pipe_args, count);
 
 			if (test_vsync)
-				test_page_flip(&dev, pipe_args, count);
+				test_page_flip(&dev, pipe_args, count, dont_stop);
 
 			if (drop_master)
 				drmDropMaster(dev.fd);
-- 
2.7.4

