]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd/tests/sem_open: Change the semaphore name (#331839)
authorBart Van Assche <bvanassche@acm.org>
Fri, 7 Mar 2014 07:45:43 +0000 (07:45 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 7 Mar 2014 07:45:43 +0000 (07:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13853

drd/tests/sem_open.c
drd/tests/sem_open_traced.stderr.exp

index 65ee28b3d6a004e910c790849876cc959a641c88..958bc6b764e74a482206f188484058f5d06a9cc3 100644 (file)
@@ -58,7 +58,7 @@ int main(int argc, char** argv)
    * Use the ipcs and ipcrm commands to clean up named semaphores left by
    * aborted instances of this process.
    */
-  snprintf(semaphore_name, sizeof(semaphore_name), "drd-sem-open-test-%d",
+  snprintf(semaphore_name, sizeof(semaphore_name), "/drd-sem-open-test-%d",
           getpid());
   s_sem = sem_open(semaphore_name, O_CREAT | O_EXCL, 0600, 1);
   if (s_sem == SEM_FAILED)
index 78543e4d790cd6a6efd560321eb157a22c05b86a..f34bd6d714cb7b110aad0e8fea629f897f405dd4 100644 (file)
@@ -1,5 +1,5 @@
 
-[1] sem_open      0x........ name drd-sem-open-test oflag 0x........ mode 0600 value 1
+[1] sem_open      0x........ name /drd-sem-open-test oflag 0x........ mode 0600 value 1
 [2] sem_wait      0x........ value 1 -> 0
 [2] sem_post      0x........ value 0 -> 1
 [1] sem_wait      0x........ value 1 -> 0