Minor fix for shared memory test #9

merged 1 commit into from Sep 12, 2012

2 participants


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.

@shinpei0208 shinpei0208 merged commit 2010fc6 into shinpei0208:master Sep 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment