|
@@ -34,6 +34,8 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/stat.h>
|
|
#include <linux/media.h>
|
|
#include <linux/media.h>
|
|
|
|
|
|
|
|
+#include "../kselftest.h"
|
|
|
|
+
|
|
int main(int argc, char **argv)
|
|
int main(int argc, char **argv)
|
|
{
|
|
{
|
|
int opt;
|
|
int opt;
|
|
@@ -61,10 +63,8 @@ int main(int argc, char **argv)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (getuid() != 0) {
|
|
|
|
- printf("Please run the test as root - Exiting.\n");
|
|
|
|
- exit(-1);
|
|
|
|
- }
|
|
|
|
|
|
+ if (getuid() != 0)
|
|
|
|
+ ksft_exit_skip("Please run the test as root - Exiting.\n");
|
|
|
|
|
|
/* Open Media device and keep it open */
|
|
/* Open Media device and keep it open */
|
|
fd = open(media_device, O_RDWR);
|
|
fd = open(media_device, O_RDWR);
|