From 3bfe1c55ae72f6f2c1cccc641e46f26114376ecd Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 30 Mar 2016 10:00:28 +0200 Subject: [PATCH] Removed shmop test leaking an shm segment --- ext/shmop/shmop.c | 1 + ext/shmop/tests/003.phpt | 33 --------------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 ext/shmop/tests/003.phpt diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 4fe65ae37d..d647790aa0 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -203,6 +203,7 @@ PHP_FUNCTION(shmop_open) } if (shmctl(shmop->shmid, IPC_STAT, &shm)) { + /* please do not add coverage here: the segment would be leaked and impossible to delete via php */ php_error_docref(NULL, E_WARNING, "unable to get shared memory segment information '%s'", strerror(errno)); goto err; } diff --git a/ext/shmop/tests/003.phpt b/ext/shmop/tests/003.phpt deleted file mode 100644 index 1c154f08ca..0000000000 --- a/ext/shmop/tests/003.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -shmop extension error messages (non-root) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -## shmop_open function tests ## - -Warning: shmop_open(): unable to get shared memory segment information 'Permission denied' in %s on line %d -bool(false) -- 2.50.1