about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-07-12 08:29:06 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-07-12 08:29:17 -0700
commit3bbee82a56b38fc4ee28ecb59721ea1d42494642 (patch)
treeb7ad289bf50ad329916d21677c92130e8770206f /ChangeLog
parent61655555aa8c2cd5f5351ef7d0aea6dfce046135 (diff)
downloadglibc-3bbee82a56b38fc4ee28ecb59721ea1d42494642.tar.gz
glibc-3bbee82a56b38fc4ee28ecb59721ea1d42494642.tar.xz
glibc-3bbee82a56b38fc4ee28ecb59721ea1d42494642.zip
Test p{read,write}64 with offset > 4GB
Test p{read,write}64 with offset > 4GB.  Since it is not an error for a
successful pread/pwrite call to transfer fewer bytes than requested, we
should check if the return value is -1.   No need to close and unlink
temporary file, which is handled by test-skeleton.c.

	[BZ #20350]
	* posix/tst-preadwrite.c: Renamed to ...
	* posix/tst-preadwrite-common.c: This.
	(PREAD): Removed.
	(PWRITE): Likewise.
	(STRINGIFY): Likewise.
	(STRINGIFY2): Likewise.
	(do_prepare): Make it static and remove function arguments.
	(do_test): Likewise.
	(PREPARE): Updated.
	(TEST_FUNCTION): New.
	(name): Make it static.
	(fd): Likewise.
	(do_prepare): Use create_temp_file.
	(do_test): Renamed to ...
	(do_test_with_offset): This.  Make it static and accept offset.
	Properly check return value of PWRITE and PREAD.  Return bytes
	read.  Don't close fd nor unlink name.
	* posix/tst-preadwrite.c: Rewrite.
	* posix/tst-preadwrite64.c: Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index af245d9416..a93884a18e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,28 @@
 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
 
+	[BZ #20350]
+	* posix/tst-preadwrite.c: Renamed to ...
+	* posix/tst-preadwrite-common.c: This.
+	(PREAD): Removed.
+	(PWRITE): Likewise.
+	(STRINGIFY): Likewise.
+	(STRINGIFY2): Likewise.
+	(do_prepare): Make it static and remove function arguments.
+	(do_test): Likewise.
+	(PREPARE): Updated.
+	(TEST_FUNCTION): New.
+	(name): Make it static.
+	(fd): Likewise.
+	(do_prepare): Use create_temp_file.
+	(do_test): Renamed to ...
+	(do_test_with_offset): This.  Make it static and accept offset.
+	Properly check return value of PWRITE and PREAD.  Return bytes
+	read.  Don't close fd nor unlink name.
+	* posix/tst-preadwrite.c: Rewrite.
+	* posix/tst-preadwrite64.c: Likewise.
+
+2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
+
 	[BZ #20309]
 	* configure.ac (have-mtls-dialect-gnu2): Set to yes if
 	-mtls-dialect=gnu2 works.