lib/igt_kms: Unify pipe name helpers
[platform/upstream/intel-gpu-tools.git] / tests / gem_bad_batch.c
index abeda88..7f92a93 100644 (file)
 #include <sys/stat.h>
 #include <sys/time.h>
 #include "drm.h"
-#include "i915_drm.h"
+#include "ioctl_wrappers.h"
 #include "drmtest.h"
 #include "intel_bufmgr.h"
 #include "intel_batchbuffer.h"
-#include "intel_gpu_tools.h"
+#include "intel_chipset.h"
+#include "intel_io.h"
 
 static drm_intel_bufmgr *bufmgr;
 struct intel_batchbuffer *batch;
@@ -55,7 +56,7 @@ bad_batch(void)
        intel_batchbuffer_flush(batch);
 }
 
-int main(int argc, char **argv)
+igt_simple_main
 {
        int fd;
 
@@ -71,6 +72,4 @@ int main(int argc, char **argv)
        drm_intel_bufmgr_destroy(bufmgr);
 
        close(fd);
-
-       return 0;
 }