Git Log


Commit Date  
[b3c4fb] by Cyril Hrubis Cyril Hrubis

lib: tst_mkfs: Add force option for xfs.

The mkfs.xfs aborts if it finds a filesystem superblock on the device,
which is the case here as we reuse one device for all tests. So we
append force option to mkfs.xfs automatically.

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

2013-08-28 12:41:57 Tree
[3e0e33] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

mount/mount05.c: format the device when necessary

Format the device only when "-D device" & "-T type" are specified.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-28 05:19:39 Tree
[80ab8b] by Jan Stancek Jan Stancek , pushed by Wanlong Gao Wanlong Gao

proc01: add use-gss-proxy to known_issues list

Following commit implemented non-blocking read for use-gss-proxy:
commit b161c144404c18f6a9e20e46b63828ae3c2eb093
Author: J. Bruce Fields <bfields@redhat.com>
Date: Fri May 24 09:47:49 2013 -0400
svcrpc: implement O_NONBLOCK behavior for use-gss-proxy

Prior to this commit non-block read hanged, but it happened
only in -rc kernels, which we can ignore.

Note, that this proc entry is available only when you load module
auth_rpcgss.

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

2013-08-28 05:19:30 Tree
[df7d48] by Jan Stancek Jan Stancek

lib/mem: remove unnecessary params in path_exist

These are applied in snprintf above.

Signed-off-by: Jan Stancek <jstancek@redhat.com>

2013-08-27 12:19:34 Tree
[371375] by Dave Kleikamp Dave Kleikamp , pushed by Jan Stancek Jan Stancek

lib/mem: handle missing online file

gather_node_cpus() fails if the /sys/devices/system/node/nodeX/cpuX/online
file is missing for any cpu other than cpu0. The absence of the online file
should not be treated as a failure, but as an indication that the cpu is
not hot-pluggable and cannot be taken offline.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>

2013-08-27 12:19:03 Tree
[5ab9e9] by Jan Stancek Jan Stancek

open_posix_testsuite/../mq_timedsend/12-1: fix race

Test can send SIGUSR1 signal after thread has already completed
and report failure from main() and success from a_thread_func():

conformance/interfaces/mq_timedsend/12-1: execution: UNRESOLVED: Output:
Error: in pthread_kill
: Success
thread: mq_timedsend interrupted by signal and correctly set errno to EINTR

Synchronize exit of a_thread_func(), so that thread can exit only
after loop sending SIGUSR1 completed.

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

2013-08-27 12:06:27 Tree
[9fc105] by Jan Stancek Jan Stancek

open_posix_testsuite/../mq_timedsend/12-1: fix long lines

Fix lines going over 80 characters.

Signed-off-by: Jan Stancek <jstancek@redhat.com>

2013-08-27 12:03:25 Tree
[858a57] by Cyril Hrubis Cyril Hrubis , pushed by Cyril Hrubis Cyril Hrubis

lib: tst_mkfs: Shuffle the mkfs params.

This changes the order of the param so that they are in right order.

Reported-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <metan@ucw.cz>

2013-08-22 09:20:20 Tree
[4aca18] by Jan Stancek Jan Stancek , pushed by Wanlong Gao Wanlong Gao

aio_fsync: wait until aio_fsync completes

This patch introduces wait so that testcases exit doesn't race
with completion of aio_fsync.

This is to avoid SIGSEGV:
#0 0x000003fffd1f4a24 in _IO_flush_all_lockp () at genops.c:850
#1 0x000003fffd1f4b8e in _IO_cleanup () at genops.c:1010
#2 0x000003fffd1a88f6 in __run_exit_handlers () at exit.c:90
#3 0x000003fffd1a89b0 in __GI_exit () at exit.c:99
#4 0x000003fffd18c822 in __libc_start_main () at libc-start.c:292
#5 0x0000000080000b76 in _start ()

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

2013-08-21 06:33:04 Tree
[14ad8f] by Stanislav kholmanskikh Stanislav kholmanskikh , pushed by Wanlong Gao Wanlong Gao

max_map_count: corrected max_map_count condition

* kernel test for max_map_count_sysctl is:
/* Too many mappings? */
if (mm->map_count > sysctl_max_map_count)
return -ENOMEM;
so in LTP test map_count should be greater than max_map_count by 1

* only [vsyscall] is allocated without incrementing mm->map_count

Author: Bob Picco <bob.picco@oracle.com>

Signed-off-by: Stanislav kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Caspar Zhang <caspar@casparzhang.com>
Reviewed-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-08-19 01:31:31 Tree
[4bdda0] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

syscalls/swapon: fix for variable page size

mkswap refuses files of size < 10*(page size).

On systems with 8192 page size swapon02, swapon03 tests fail because
they try to use files of size 41920 (< 81920).

Modified swapon1, swapon02, swapon03 so they operate on files of size
10*(page size).

Verified on systems with 4096 and 8192 page sizes.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-14 09:54:11 Tree
[1d5d48] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

Implemented tst_fill_file function

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-14 09:53:01 Tree
[0eccc5] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

rt_sigaction: headers are included in a uniform way

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-14 09:21:57 Tree
[c381f5] by Cyril Hrubis Cyril Hrubis

runltp: Drop the mkfs on DEVICE from preparation

This is no longer needed because of previous commit.

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

2013-08-12 11:49:55 Tree
[533992] by Cyril Hrubis Cyril Hrubis

syscalls: Add tst_mkfs() to all tests with DEVICE.

All tests that take DEVICE as a parameter now formats it before use.

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

2013-08-12 11:49:54 Tree
[7224b7] by Cyril Hrubis Cyril Hrubis

syscalls/umount: Big cleanup.

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

2013-08-12 11:49:53 Tree
[629a1a] by Cyril Hrubis Cyril Hrubis

syscalls/mount: Big cleanup.

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

2013-08-12 11:49:52 Tree
[26aa0a] by Cyril Hrubis Cyril Hrubis

syscalls/inotify: Cleanups.

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

2013-08-12 11:49:50 Tree
[2492ce] by Cyril Hrubis Cyril Hrubis

lib: Add tst_mkfs() function.

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

2013-08-12 11:49:49 Tree
[989d30] by Cyril Hrubis Cyril Hrubis

tst_run_cmd: Make the tst_run_cmd survive SIGCHLD

The tst_sig() installs poisoned signal handlers for all signals the test
is not expected to get, this causes abort in tst_run_cmd right after the
child exits and parent starts running.

This commit makes the tst_run_cmd temporarily disable the handler for
SIGCHLD (the handler is set to SIG_DFL at the start of the tst_run_cmd
function and restored at the end of it) so that we don't have to disable
the poisoned handler in each test using tst_run_cmd.

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

2013-08-12 11:49:48 Tree
[e63337] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

tst_run_cmd: const correctness

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-12 11:48:18 Tree
[37e1b7] by Marta Rybczynska Marta Rybczynska , pushed by Cyril Hrubis Cyril Hrubis

ebizzy.h: mallopt does not exist on uClinux

mallopt does not exist on uClibc, it requires MMU.

Signed-off-by: Marta Rybczynska <marta.rybczynska@kalray.eu>

2013-08-12 10:13:16 Tree
[7a5d0c] by Stanislav kholmanskikh Stanislav kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

quota_remount_test01: SELinux workaround and other fixes

* now it uses tst_kvercmp (to support kernels >= 3)
* some distros doesn't allow creation of quota files in
directories with SELinux file_t type. Now we explicitly
change file type of the test directory to tmp_t

Signed-off-by: Stanislav kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Tested-by: Jan Stancek <jstancek@redhat.com>

2013-08-07 11:40:39 Tree
[29a9cf] by Stanislav kholmanskikh Stanislav kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

lib/tst_module.c: modification for updated tst_run_cmd specification

Signed-off-by: Stanislav kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-06 13:02:46 Tree
[bee0a9] by Stanislav kholmanskikh Stanislav kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

tst_run_cmd: added support for stdout and stderr redirection

Added function tst_run_cmd_fds which allows redirection of
stdout/stderr to file descriptors.

Now function tst_run_cmd is a wrapper to tst_run_cmd_fds.

Signed-off-by: Stanislav kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-08-06 13:01:15 Tree
Older >