diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-08-04 11:11:22 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-08-04 11:11:22 +0200 |
commit | 2e65b8916cce4436df29812610d2c2fecdb42b5a (patch) | |
tree | fdcae670bd651c8e772eb7cd60420eba5d26a0db /tools/testing/selftests/ipc | |
parent | ALSA: hda - fix an external mic jack problem on a HP machine (diff) | |
parent | ALSA: hda - add mic mute led hook for dell machines (diff) | |
download | linux-2e65b8916cce4436df29812610d2c2fecdb42b5a.tar.xz linux-2e65b8916cce4436df29812610d2c2fecdb42b5a.zip |
Merge branch 'for-next' into for-linus
Diffstat (limited to 'tools/testing/selftests/ipc')
-rw-r--r-- | tools/testing/selftests/ipc/msgque.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c index aa290c0de6f5..552f0810bffb 100644 --- a/tools/testing/selftests/ipc/msgque.c +++ b/tools/testing/selftests/ipc/msgque.c @@ -193,6 +193,11 @@ int main(int argc, char **argv) int msg, pid, err; struct msgque_data msgque; + if (getuid() != 0) { + printf("Please run the test as root - Exiting.\n"); + exit(1); + } + msgque.key = ftok(argv[0], 822155650); if (msgque.key == -1) { printf("Can't make key\n"); |