fangzhiyi18
0ae77b95ef
升级2.7
...
Signed-off-by: fangzhiyi18 <fangzhiyi1@huawei.com >
2024-10-21 02:53:20 +00:00
Ammar Faizi
5cb750e9f6
test/eeed8b54e0df: Initialize the malloc()ed buffer before write()
...
... to avoid valgrind's complaint:
==3054187== Syscall param write(buf) points to uninitialised byte(s)
==3054187== at 0x4958E63: write (write.c:26)
==3054187== by 0x109283: get_file_fd (eeed8b54e0df.c:36)
==3054187== by 0x109283: main (eeed8b54e0df.c:85)
==3054187== Address 0x4a63080 is 0 bytes inside a block of size 4,096 alloc'd
==3054187== at 0x484479B: malloc (vg_replace_malloc.c:380)
==3054187== by 0x109698: t_malloc (helpers.c:22)
==3054187== by 0x109270: get_file_fd (eeed8b54e0df.c:35)
==3054187== by 0x109270: main (eeed8b54e0df.c:85)
Link: https://github.com/axboe/liburing/issues/640
Reported-by: Vitaly Chikunov <vt@altlinux.org >
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org >
Link: https://lore.kernel.org/r/20220810002735.2260172-3-ammar.faizi@intel.com
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2022-08-10 07:02:50 -06:00
Eli Schwartz
dd35f16b1d
tests: emit a skip exit code if invoked with additional argv
...
These are skipped because they are not applicable if files/devices are
provided for a special test run. Note this in the return status.
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com >
2022-06-28 10:37:33 -04:00
Eli Schwartz
3467e7ac6d
tests: migrate some tests to use enum-based exit codes
...
For maintainability and clarity, eschew the use of integer literals in
reporting test statuses. Instead, use a helper enum which contains
various values from the GNU exitcode protocol. Returning 0 or 1 is
obvious, and in the previous commit the ability to read "skip" (77) was
implemented. The final exit status is 99, which indicates some kind of
error in running the test itself.
A partial migration of existing pass/fail values in test sources is
included.
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com >
2022-06-28 10:37:33 -04:00
Ammar Faizi
5a5f62524c
test: Rename [0-9a-f]-test.c to [0-9a-f].c
...
Simplify the test filename.
mv -v test/232c93d07b74-test.c test/232c93d07b74.c
mv -v test/35fa71a030ca-test.c test/35fa71a030ca.c
mv -v test/500f9fbadef8-test.c test/500f9fbadef8.c
mv -v test/7ad0e4b2f83c-test.c test/7ad0e4b2f83c.c
mv -v test/8a9973408177-test.c test/8a9973408177.c
mv -v test/917257daa0fe-test.c test/917257daa0fe.c
mv -v test/a0908ae19763-test.c test/a0908ae19763.c
mv -v test/a4c0b3decb33-test.c test/a4c0b3decb33.c
mv -v test/b19062a56726-test.c test/b19062a56726.c
mv -v test/b5837bd5311d-test.c test/b5837bd5311d.c
mv -v test/ce593a6c480a-test.c test/ce593a6c480a.c
mv -v test/d4ae271dfaae-test.c test/d4ae271dfaae.c
mv -v test/d77a67ed5f27-test.c test/d77a67ed5f27.c
mv -v test/eeed8b54e0df-test.c test/eeed8b54e0df.c
mv -v test/fc2a85cb02ef-test.c test/fc2a85cb02ef.c
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org >
Link: https://lore.kernel.org/r/20220403182200.259937-2-ammarfaizi2@gnuweeb.org
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2022-04-03 17:12:50 -06:00