Age | Commit message (Collapse) | Author |
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
|
|
Signed-off-by: Wei,Jiangang <weijg.fnst@cn.fujitsu.com>
|
|
This patch adds check for realloc failure case and free arg_string before returning from splitstr() to avoid memory leaks
Signed-off-by: Yogesh Gaur <yn.gaur@samsung.com>
Signed-off-by: Manjeet Pawar <manjeet.p@samsung.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
|
|
This patch avoid memory leak by freeing the buf before the slurp()
function return.
Signed-off-by: Yogesh Gaur <yn.gaur@samsung.com>
Signed-off-by: Manjeet Pawar <manjeet.p@samsung.com>
|
|
Replace all (type *)0 with NULL
Created with coccinelle patch:
@@
type T;
@@
-(T*)0
+NULL
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
|
|
Since commit 6f6878f4e1406d79cae53564777c5e1245d2a124, we start to
differentiate TCONF from TFAIL, but in pan/ltp-pan.c, we still write
test cases that return TCONF into failcmdfile, this is wrong, fix this.
Meanwhile we add a '-T' option for runltp, to let user record test cases
that return TCONF, namely, by this file, users can know what cases are not
fully tested.
Reported-by: Shuang Qiu <shuang.qiu@oracle.com>
Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
|
|
Currently numbers of testcases in LTP will return TCONF when they are not
appropriate to run. But when users execute './runltp' to run the default
test suite towards an linux distribution or upstream kernel, if testcases
return TCONF, ultimately they will print TPASS to users, then users will
not know the real LTP test coverage.
NOTE: The overall test status would be TCONF even if just one test assertion
reported TCONF, which is not ideall but still far better than the
previous state.
Here we change this behaviour and show users testcases which return TCONF,
meaning that these testcases are not fully tested.
Here is a sample:
1. Before this patch, The output will be:
Test Start Time: Tue Jun 24 14:32:15 2014
-----------------------------------------
Testcase Result Exit Value
-------- ------ ----------
access01 PASS 0
access02 PASS 0
access03 PASS 0
getxattr01 PASS 0
getxattr02 PASS 0
access04 PASS 0
ext4-nsec-timestamps PASS 0
ext4-uninit-groups PASS 0
access05 PASS 0
access06 PASS 0
-----------------------------------------------
Total Tests: 10
Total Failures: 0
Kernel Version: 3.16.0-rc1+
Machine Architecture: x86_64
Hostname: localhost.localdomain
2. After this patch, the output will be:
Test Start Time: Tue Jun 24 14:28:27 2014
-----------------------------------------
Testcase Result Exit Value
-------- ------ ----------
access01 PASS 0
access02 PASS 0
access03 PASS 0
getxattr01 CONF 32
getxattr02 CONF 32
access04 PASS 0
ext4-nsec-timestamps CONF 32
ext4-uninit-groups CONF 32
access05 PASS 0
access06 PASS 0
-----------------------------------------------
Total Tests: 10
Total Skipped Tests: 4
Total Failures: 0
Kernel Version: 3.16.0-rc1+
Machine Architecture: x86_64
Hostname: localhost.localdomain
Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
|
|
Delete the useless 'char *av[2], bigarg[82];' definition.
Fix the 'ignoring return value of read(2)' compilation warnings.
Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
|
|
No functional changes. No "cleanup". Just fixes for
"old-style function definition" compile warnings.
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
|
|
char *cuts_info[5];
...
while (tok_num < 5 &&
(cuts_info[++tok_num] = strtok(NULL, "\t ")) != NULL) ;
While above can run for tok_num == 4, in which case:
cuts_info[++tok_num] becomes cuts_info[5]
and that is outside of cuts_info array.
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
|
|
Cleanup the code indent using:
find . -name *.c -exec Lindent {} \;
It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
|
|
find . -type f -exec sed -i 's/the Free Software Foundation, Inc., 59/the Free Software Foundation, Inc.,/g;s/Temple Place - Suite 330, Boston MA 02111-1307, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
|
|
This is a scripted change done using the following command:
find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e 's/[\t ]*$//'
Signed-off-by: Chris Dearman <chris@mips.com>
|
|
This is a scripted change done using the following command:
find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'
Signed-off-by: Chris Dearman <chris@mips.com>
|
|
When execvp() fails, the testcases is counted in Total Tests, but not
added in logfile. In fact the testcases result should be added in logfile.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Garrett Cooper <yanegomi@gmail.com>
|
|
"%option nolex-compat" can silence warning, but also make the global
variable "yylineno" undeclared. The following patch add "%option
yylineno" to make the global variable "yylineno" to be accessed.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
|
|
1. malloc.h is obsolete for malloc(3), et all.
2. Fix some compile-time warnings.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
All of the nasty warnings have been resolved; all of the errors from here on
out are in the generated lex code that we don't have control over.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
There was a bug lurking in here with exec* failures before where it wouldn't
print out anything helpful; maybe this will unroot the problem now.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.
As a side-effect, fix all trailing whitespace issues.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
It isn't invoked anywhere in the sourcebase from what I can see, but it could still be a functional / helpful utility...
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
3.80.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
log, I found the following issue with a malloc call. I also fixed a
typo and a whacky indentation item as well.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
from a Make perspective.
2. Several files were changed to accomodate correct installation
practices, most notably ones in testcases/network/{ipv6,tcp_cmds},
testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items
in tools/..., and also to avoid collisions as far as installed
testcases (scripts, compiled C apps) were concerned.
3. Several apps weren't autoconf safe and some autoconf tests and
conditional statements have been placed in sourcecode and in Makefiles
to either a) prevent the tests from being built / installed or b) turn
the tests into dummy apps which print out TCONF messages due to
lack-of-build support.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
|
|
later: There was a crash in pan when the zoofile couldn't be opened; this patch fixes it by disallowing the zoo_open function to continue. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
|
|
the changes to pan driver for a possible fix to the report generation issue. I have modified genhtml.pl script to reflect changes in pan driver. Note: The 'Initiation-status' column is now present after Test-output column. Signed-off-by: rohit verma <rohit.170309@gmail.com>.
|
|
http://ltp.cvs.sourceforge.net/viewvc/*checkout*/ltp/ltp/pan/pan.c?revision=1.32, as the existing one was not running and was hung at runtime. Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>.
|
|
directory to have ltp- prefix as plain pan when installed in /usr/bin/ directory conflict with gnome pan. It also fixes all occurrences of pan in scripts and howtos. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>.
|
|
the right manner, but other error messages are also forwarded to stderr instead of stdout. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>.
|
|
should honor this. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>.
|
|
small patch to add this simple feature to pan without changing its previous behaviour. Running a test only once by pan for a specific time is currently also possible without this patch. Just give the '-t <time>' option *and* than the '-s 1' option. But it is racy yet, to do so. Adding this patch removes this race. With: $ pan <....> -t 60s -s 1 -- my_test, the my_test will now run for one time only. If everyhing went ok, it returns happy within the 60 seconds period. If my_test runs amok, it will never return and pan will kill it after 60 seconds. --8<--------8<-------8<-------8<--------8<-------8<-----8<--------8<------. This patches add a feature to limit the number of times a test is started when running for a certain time instead of infinite runs. This could be used to give a timeout for a certain test. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>, Acked-by: Juergen Beisert <jbe@pengutronix.de>.
|
|
newline. Signed-Off-By: Jiri Palecek <jpalecek@web.de>.
|
|
fixes for compiler warning, bashisms in the makefiles etc. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
|
|
signal registered by sigaction. Valgrind reports various uninitalied bytes of the sigaction struct: Initializing the sigaction struct as empty avoids a segfault of "pan". Signed-off-by: Daniel Gollub <dgollub@suse.de>. Acked-by: Nate Straz <nstraz@redhat.com>.
|
|
packaging scripts/spec files. Use PREFIX variable instead to manipulate the installation destination directory. Introduced LIBSUFFIX to allow to manipulate library directory to lib64 e.g. for distribution packaging for x86_64 or others architectures. Signed-off-by: Daniel Gollub <dgollub@suse.de>.
|
|
in regen.sh might have to do with some dash limitation (it complains about not supporting more than 32 shifts.) The one with the Makefile has to do with the version of lex I have here (lex 2.5.33) complaining about -l not accepting an extra argument (I believe it interprets the w as such). I did a quick check after applying the changes and they seem not to break anything. Signed-Off-By: Elder Costa <elder.costa@terra.com.br>.
|
|
several warnings. The build failures are caused by pec_listener.c and then ptrace06.c, It because the Kernel version checking code is incorrect from it, as you can see from the error message above, "/bin/sh: ../../bin/tst_kvercmp: No such file or directory". I solve it by querying an entry in proc file system instead. For ptrace06.c case, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO are unavailable in this version of Kernel, Given that this test also fails to compile for IA-64 entirely (please see more details on one of my previous emails sent not long ago), I disable this test temperately until those problems have been fixed. In addition, it fixed the following unnecessary compiling warnings. Finally, check_for_unshare.c:21: warning: implicit declaration of function `tst_kvercmp'. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
|
|
command-file". Among the options, the "/tmp/test" does not exist. The solution is to add condition judgements before use the pointer. To execute pan/pan with option "-p" will occurs Segmentation fault. The reason is that it not appends the "-l" option to pan to open the "logfile" for writing log. Just add a condition judgement to fix it. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>.
|
|
Architectures for Standalone development of LTP Unit Testcase. Contributed by George Kraft <gk4@us.ibm.com>
|
|
|
|
|
|
in pan if runltp tries to run a test that isn't present.
|