Git Log


Commit Date  
[9187c0] by Jan Stancek Jan Stancek

waitid02: split code into separate testcases

Previous code in main was:
- using sleep for synchronization
The sleep make take longer if run in overcommitted
z/VM environment with considerably high steal time, which
causes testcase to hang.
- missing wait for last child

This patch splits code from main() into separate testcases,
each with its own setup/cleanup and expected outcome.

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

2013-05-16 10:09:34 Tree
[2990b7] by Jan Stancek Jan Stancek

waitid02: cleanup

Remove useless comments, convert spaces to tabs
and fix long lines.

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

2013-05-16 10:07:56 Tree
[c52050] by Cyril Hrubis Cyril Hrubis

openposix: generate-makefiles.sh: Fix buildonly tests.

The buildonly tests were not compiled due to mistake
in the generate-makefiles script. Sorry.

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

2013-05-27 12:00:27 Tree
[c05541] by Shuang Qiu Shuang Qiu , pushed by Wanlong Gao Wanlong Gao

Unmap the mapped address region

It does not unmap the mapped address region,so we sometimes still get
such
warning when cleanup with nfs as TMPDIR although the file descriptor is
closed:
0 TWARN : tst_rmdir: rmobj(/mnt/nfsv3/ltp-MOeIFH7102/vma4FwRqb)
failed:
unlink(/mnt/nfsv3/ltp-MOeIFH7102/vma4FwRqb/.nfs000000000110cb3600000001)
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-27 06:29:42 Tree
[ee47b9] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

shmctl/shmctl01.c: Test features IPC_INFO, SHM_STAT, SHM_LOCK and SHM_UNLOCK.

Additional tests for features IPC_INFO, SHM_STAT, SHM_LOCK and SHM_UNLOCK.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-24 09:50:07 Tree
[7ea497] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

shmctl/shmctl01.c: cleanup

1. Remove useless comments

2. Revise code to follow ltp-code-style

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-23 08:35:57 Tree
[7053c3] by Shuang Qiu Shuang Qiu , pushed by Wanlong Gao Wanlong Gao

dup07:Close the file before unlink it.

When unlink() a file in nfs environment,it will rename the file to a
.nfs<xxxxx> file if any process still has that file open.And this file
could not be deleted until it is closed.So we always get the following
warning which makes testcase "dup07" failed:
0 TWARN : tst_rmdir: rmobj(/mnt/nfsv3/ltp-ZtzSE27611/dupKuEr3H)
failed:
unlink(/mnt/nfsv3/ltp-ZtzSE27611/dupKuEr3H/.nfs000000000110cb3800000066)
failed; errno=16: Device or resource busy

Close the created/dup file before unlink() it to fix this issue.

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-24 03:03:39 Tree
[04a34b] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

Create a function tst_resm_hexd() to print a buffer in hex

This new function behaves like the tst_resm() function. The difference is,
it in addition takes a buffer, its size and prints the buffer in hexadecimal
format in the end of the message.

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

2013-05-23 07:03:18 Tree
[f74f0a] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

semctl01.c: Pass the correct parameter

For SEM_STAT, the semid argument is not a semaphore identifier, but instead an
index into the kernel’s internal array that maintains information about all
semaphore sets on the system.

Pass a correct index of the kernel' internal array intead of a semaphores id when
testing feature SEM_STAT.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-22 01:52:09 Tree
[4140aa] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

prot_hsymlinks.c: remove the unnecessary calling of cleanup

Should not call cleanup here since nothing was setted by setup.

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

2013-05-16 06:08:37 Tree
[775572] by Vinson Lee Vinson Lee , pushed by Wanlong Gao Wanlong Gao

mount/mount03.c: Add mode argument to open call.

This patch fixes this build error on Ubuntu introduced with commit
24324ad5dae71172125060b82580486b0f3d37da.

In file included from /usr/include/fcntl.h:252:0,
from mount03.c:73:
In function ‘open’,
inlined from ‘setup’ at mount03.c:447:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:51:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Signed-off-by: Vinson Lee <vlee@twitter.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-17 18:56:46 Tree
[8cda96] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

mem.c: check whether MADV_MERGEABLE is available

Before using MADV_MERGEABLE, check whether it's available by macro
HAVE_MADV_MERGEABLE.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-17 02:32:16 Tree
[a85442] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

shmat/shmat01.c: Test for specifying NULL to shmaddr

Test for statement:
"If shmaddr is NULL, the system chooses a suitable (unused) address
at which to attach the segment."

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-17 05:39:32 Tree
[77eafc] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

shmat/shmat01.c: cleanup

1. Remove useless comments

2. Revise code to follow ltp-code-style

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

2013-05-16 03:01:42 Tree
[a06f02] by Wanlong Gao Wanlong Gao

gitignore: add ksm06

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-16 00:32:25 Tree
[2067f1] by Markos Chandras Markos Chandras , pushed by Cyril Hrubis Cyril Hrubis

prot_hsymlinks.c: Define _GNU_SOURCE which is required for O_DIRECTORY

O_DIRECTORY is only available if _GNU_SOURCE is defined
in uClibc toolchains.

This is similar to 0d0c695c8c6657710d1a8ecb4f1264dcd405276b
"open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY"

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>

2013-05-15 14:17:44 Tree
[2d2b94] by Cyril Hrubis Cyril Hrubis

openposix/.../sigaction/{18,19,28}: Regenerate.

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

2013-05-15 11:33:14 Tree
[371a69] by Cyril Hrubis Cyril Hrubis

openposix/.../sigaction/templates/{18,19,28}

The sig_atomic_t does not imply volatile.

This fixes the testcases when compiled with -O2.

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

2013-05-15 11:28:35 Tree
[a63f93] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

semctl/semctl01.c: Test features IPC_INFO, SEM_INFO and SEM_STAT

Additional tests for features IPC_INFO, SEM_INFO and SEM_STAT.

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

2013-05-13 02:24:33 Tree
[bffa88] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

semctl/semctl01.c: cleanup

1. Remove useless comments

2. Revise code to follow ltp-code-style

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

2013-05-13 02:21:43 Tree
[24324a] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

mount/mount03.c: fix several issues

Make following fixes:
* Create the file before calling stat(file).
Call get_current_dir_name() after tst_tmpdir().
Fix incorrect using of snprintf().

* For MS_NOEXEC test, change judgement method to
If errno is set to EACCES after execlp(exec-file), this case passes.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-14 02:40:28 Tree
[6dcafa] by DAN LI DAN LI , pushed by Wanlong Gao Wanlong Gao

mount/mount03.c: cleanup

1. Remove useless comments

2. Revise code to follow ltp-code-style

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-14 02:31:15 Tree
[65ca1b] by Zhouping Liu Zhouping Liu , pushed by Wanlong Gao Wanlong Gao

mem/ksm06: add a new case to test merge_across_nodes sysfs knob

Kernel commit 90bd6fd31c8097(ksm: allow trees per NUMA node)
introduced a new ksm sysfs knob /sys/kernel/mm/ksm/merge_across_nodes,
which makes NUMA awareness KSM.

The case is designed to check whether KSM can merge the same shared
pages distributed on different numa nodes when enabling or disabling
merge_across_nodes.

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-13 08:43:28 Tree
[6b699d] by Zhouping Liu Zhouping Liu , pushed by Wanlong Gao Wanlong Gao

mem: introduce clean_node() func

There's set_node func introduced in commit cb2967b27a65, but we
don't have a func to clean the node mask yet.

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-13 08:43:27 Tree
[fbcafd] by Zhouping Liu Zhouping Liu , pushed by Wanlong Gao Wanlong Gao

mm/ksm: enable merge_across_nodes knob before testing

This kernel commit 90bd6fd31c809(ksm: allow trees per NUMA node)
introduced a new KSM sysfs knob /sys/kernel/mm/ksm/merge_across_nodes,
when it is set to zero, only pages from the same node are merged,
which is different with the previous behavior, and ksm test cases
sometimes will fail in NUMA system.

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-05-13 08:43:26 Tree
Older >

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks