Skip to content

Commit e98eb8f

Browse files
committed
test: simplify TESTs files
- simple file names - unconditional test file removal in TEST8 Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
1 parent a2ad95a commit e98eb8f

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

src/test/RUNTESTS

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ testtype=check
354354
fstype=all
355355
testconfig="./testconfig.sh"
356356
killopt="-k 10s"
357-
runtest_timeout="30m"
357+
runtest_timeout="3m"
358358
use_timeout="ok"
359359
testfile=all
360360
testseq=all

src/test/obj_pmalloc_mt/TEST0

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST0
19+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile0
2020

2121
pass

src/test/obj_pmalloc_mt/TEST1

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-disable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST1
19+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile1
2020

2121
pass

src/test/obj_pmalloc_mt/TEST2

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile.TEST2
19+
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile2
2020

2121
pass

src/test/obj_pmalloc_mt/TEST3

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ configure_valgrind drd force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile.TEST3
19+
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile3
2020

2121
pass

src/test/obj_pmalloc_mt/TEST8

+6-9
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,20 @@
1111

1212
require_valgrind 3.10
1313
require_fs_type pmem
14-
require_test_type medium
14+
require_test_type long
1515
configure_valgrind helgrind force-enable
1616

1717
setup
1818

19-
if test -f "rm $DIR/testfile.TEST8"; then
20-
rm $DIR/testfile.TEST8
21-
fi
19+
rm -f $DIR/testfile8
20+
2221
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
23-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST8
22+
./obj_pmalloc_mt$EXESUFFIX 32 100 10 $DIR/testfile8
2423

25-
if test -f "rm $DIR/testfile.TEST8"; then
26-
rm $DIR/testfile.TEST8
27-
fi
24+
rm $DIR/testfile8
2825

2926
PMEM_IS_PMEM_FORCE=1 expect_abnormal_exit\
30-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST8
27+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile8
3128

3229
check
3330

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{obj_pmalloc_mt.c:52 alloc_worker} obj_pmalloc_mt/TEST8: Error: assertion failure: a->r->offs[a->idx][i] (0x0) != 0 (0x0)
1+
{obj_pmalloc_mt.c:66 realloc_worker} obj_pmalloc_mt/TEST8: Error: assertion failure: ret (0xffffffffffffffff) == 0 (0x0)

0 commit comments

Comments
 (0)