Skip to content

Commit

Permalink
Merge pull request #15 from alex-mikheev/topic/shmem_ptr
Browse files Browse the repository at this point in the history
shmem_ptr: fix already existing simple test
  • Loading branch information
mike-dubman authored Jul 24, 2017
2 parents 548b2fe + 40b9ade commit 490c41a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions verifier/basic/osh_basic_tc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,14 @@ static int test_item3(void)

static int test_shmem_ptr()
{
static int foo;
int *ptr;
static int foo = 0xdeadbeef;

/* function is not available in our implementation */
return 0 == shmem_ptr(&foo, 0) ? TC_PASS : TC_FAIL;
ptr = shmem_ptr(&foo, 0);

log_debug(OSH_TC, "%d: ptr %p foo %p val %x\n", _my_pe(), ptr, &foo, ptr ? *ptr : 0);

return (ptr == NULL || *ptr == 0xdeadbeef) ? TC_PASS : TC_FAIL;
}

static int test_shmem_accessible()
Expand Down

0 comments on commit 490c41a

Please sign in to comment.