Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Git Log


Commit Date  
[b88fa5] by Cyril Hrubis Cyril Hrubis

runltp: Fix bashism

Remove several occurences of '&> /dev/null' that breaks the script
execution under dash.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>

2013-06-25 13:52:22 Tree
[bcf24e] by Wanlong Gao Wanlong Gao , pushed by Cyril Hrubis Cyril Hrubis

getrusage03: disable the test when kernel before 2.6.32

Kernel commit 1f10206c is first introduced in 2.6.32, this
ru_maxrss behaviors will not be supported before kernel 2.6.32,
so disable the test when kernel version is before 2.6.32.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-25 12:36:47 Tree
[a0e618] by Jan Stancek Jan Stancek

new testcase: kmsg01

Test /dev/kmsg based on kernel doc: Documentation/ABI/testing/dev-kmsg
- read() blocks
- non-blocking read() fails with EAGAIN
- partial read fails (buffer smaller than message)
- can write to /dev/kmsg and message seqno grows
- first read() after open() returns same message
- if messages get overwritten, read() returns -EPIPE
- device supports SEEK_SET, SEEK_END, SEEK_DATA

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-25 07:56:45 Tree
[60c6ce] by Eryu Guan Eryu Guan , pushed by Cyril Hrubis Cyril Hrubis

dup2/dup205: close all fds before tst_rmdir()

Close all open fds before calling tst_rmdir() to avoid TWARN caused by
NFS silly rename when removing temp dir.

dup205 0 TWARN : tst_rmdir: rmobj(/mnt/nfs/dupbA5J5i) failed: unlink(/mnt/nfs/dupbA5J5i/.nfs0000000000f4805b00000005) failed; errno=16: Device or resource busy

Signed-off-by: Eryu Guan <eguan@redhat.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Caspar Zhang <caspar@casparzhang.com>

2013-06-24 16:05:51 Tree
[ed69cd] by Cyril Hrubis Cyril Hrubis

lib: Add lib/ltp_priv.h header for internal API.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-24 15:56:46 Tree
[8329ed] by DAN LI DAN LI , pushed by Cyril Hrubis Cyril Hrubis

mmap/mmap13.c: new case to test SIGBUS error of mmap

Test SIGBUS error by accessing to a portion of the buffer that does not
correspond to the file.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

2013-06-24 15:40:39 Tree
[d2085c] by Cyril Hrubis Cyril Hrubis

lib: safe_macros: Add SAFE_FOPEN(), SAFE_FCLOSE()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-18 12:47:19 Tree
[208669] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

prot_hsymlinks & cgroup_xattr: fix copyright header

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>

2013-06-17 15:30:58 Tree
[e0cbe7] by Jungsoo Son Jungsoo Son , pushed by Wanlong Gao Wanlong Gao

syscalls/chown01: Fix test file creation

There is a bug in the code to create the file and the code is
very intricate. So replace it with SAFE_FILE_PRINTF().

Signed-off-by: jungsoo.son <jungsoo.son@lge.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-06-11 00:07:21 Tree
[8a575d] by Cyril Hrubis Cyril Hrubis

syscalls/chmod02: Fix test file creation + cleanup

1. Cleanup the code, remove useless comments.

2. The code to create the file is broken and overly complicated,
replace it with SAFE_FILE_PRINTF().

Reported-by: jungsoo.son <jungsoo.son@lge.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-05 15:30:30 Tree
[ec22fb] by Cyril Hrubis Cyril Hrubis

syscalls/mmap: Remove check for getpagesize() < 0

1. The getpagesize() never fails

2. The condition is always false due to conversion
to unsigned size_t

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 18:37:05 Tree
[5efee3] by Cyril Hrubis Cyril Hrubis

syscalls/mmap: Cleanups.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 18:29:15 Tree
[82ddd5] by Cyril Hrubis Cyril Hrubis

fs/ftest{04,08}: Remove unused allocated buffer.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 17:33:07 Tree
[8dc262] by Cyril Hrubis Cyril Hrubis

lib/parse_opts.c: Remove a few unused assigments.

Some of the ENV variables are only checked for existence so there is no
need to store the return value into the ptr variable. (this change
silences warnings)

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 17:12:59 Tree
[1065dc] by Cyril Hrubis Cyril Hrubis

syscalls/stat01: Cleanup.

A little cleanup + remove the second call to parse_opts().

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 17:09:15 Tree
[10ff5e] by Cyril Hrubis Cyril Hrubis

openposix/.../mmap/27-1: Remove unused variable.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 17:04:21 Tree
[1bbfae] by Cyril Hrubis Cyril Hrubis

syscalls/readdir02: Cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 16:55:10 Tree
[beb0b7] by Cyril Hrubis Cyril Hrubis

syscalls/mprotect03: Make use of SAFE_WRITE().

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 15:47:40 Tree
[b9f926] by Cyril Hrubis Cyril Hrubis

syscalls/mprotect01: Straighten up the logic.

Pass the pointer to the current testcase to the setup function instead of
passing the values via global variables + various small fixes.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 15:20:04 Tree
[7ff5eb] by Cyril Hrubis Cyril Hrubis

syscalls/mprotect: Fix mmap() error checks.

The addr < 0 is always true. Make use of proper MAP_FAILED constant
instead.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 14:32:39 Tree
[7e40c4] by Cyril Hrubis Cyril Hrubis

syscalls/mprotect: Cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 14:29:46 Tree
[197c1c] by Cyril Hrubis Cyril Hrubis

syscalls/mprotect: Cleanup UCLINUX ifdefs.

Add mprotect directory to FILTER_OUT_DIRS on UCLINUX.

Remove the UCLINUX ifdefs from the code.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-06-04 12:41:46 Tree
[0546c9] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

su/su01_s1: fix mismatched double quotation marks

Expect code
* spawn su -c "/bin/su root -c \"echo \"\\\$TEST_LINE > $TEST_ENV_FILE\"\""
will be translated to
* spawn su -c /bin/su root -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT""
which actually should be
* spawn su -c /bin/su root -c "echo \$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-31 08:14:15 Tree
[0e335d] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

New core test of cgroups and extended attributes

Support of extended attributes in cgroups was added in Linux 3.7.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>

2013-05-30 18:44:01 Tree
[29d35a] by Shuang Qiu Shuang Qiu , pushed by Wanlong Gao Wanlong Gao

mmapstress10:Close the file descriptor

It does not close the file descriptor before return 1 in fileokey()
function which may cause the following warning with nfs as TMPDIR:
0 TWARN : tst_rmdir: rmobj(/mnt/nfsv3/ltp-SDrfq17456/mmaq7TOqt)
failed:
unlink(/mnt/nfsv3/ltp-SDrfq17456/mmaq7TOqt/.nfs000000000110cb3600000004)
failed; errno=16: Device or resource busy

Signed-off-by: Shuang Qiu <shuang.qiu@oracle.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-28 08:02:49 Tree
Older >