shinpei0208/gdev — pull request #9 by GoelDeepak (2012-09-12 02:34:36+00:00)
Title: Minor fix for shared memory test

I believe that shared memory test is failing because the value of KEY is being set as 0xdeadbeef, which when treated as a signed integer becomes a negative value. Due to this the following check in gshmget () fails:

if (key < 0 || size == 0) (key is considered as a signed integer)
return -EINVAL;

The change is to set KEY value to 0x7eadbeef, a non-negative number. With this change, it is working fine for me.