mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
tools/test/stress2/misc: Fix and enable new tests
The previously committed versions of these tests failed to prevent duplicate file names in the list of files to process, leading to missing files when a "mv" commando tried to operate on a file that had already been renamed. The test for filenames containing UTF-16 surrogate pairs stays disabled, since the required kernel changes have not been committed, yet.
This commit is contained in:
@@ -39,8 +39,6 @@ mount7.sh https://people.freebsd.org/~pho/stress/log/log0549.txt 20240912
|
||||
mlockall2.sh Unrecoverable OOM killing seen 20190203
|
||||
mlockall6.sh https://people.freebsd.org/~pho/stress/log/log0430.txt 20230403
|
||||
mlockall7.sh Needs further investigation 20210123
|
||||
msdos22.sh Waiting for fix 20260529
|
||||
msdos23.sh Waiting for fix 20260529
|
||||
msdos24.sh Waiting for fix 20260529
|
||||
msetdomain.sh May change policy for random threads to domainset_fixed 20210104
|
||||
newfs4.sh watchdog fired. newbuf (still seen 20240729) 20190225
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
MDUNIT=10
|
||||
FS=/mnt
|
||||
LOCALE=C.UTF-8
|
||||
LOCALE=C
|
||||
FILES=1000
|
||||
|
||||
export LANG=$LOCALE
|
||||
|
||||
randomfilename () {
|
||||
name="f"
|
||||
name=""
|
||||
count=$(jot -r 1 10 3)
|
||||
for r in $(jot -r $count 7 0); do
|
||||
r=$(( r + 0 ))
|
||||
@@ -40,14 +40,12 @@ randomfilename () {
|
||||
cd $FS/test
|
||||
|
||||
for i in $(jot $FILES); do
|
||||
newfile=$(randomfilename)
|
||||
case $testfiles in
|
||||
*"$newfile"*) continue;;
|
||||
esac
|
||||
testfiles="$(randomfilename)
|
||||
$testfiles"
|
||||
testfiles="$testfiles
|
||||
$(randomfilename)"
|
||||
done
|
||||
|
||||
testfiles=$(echo "$testfiles" | grep "." | sort -R | uniq)
|
||||
|
||||
for f in $testfiles; do
|
||||
echo "$f" > $f
|
||||
done
|
||||
|
||||
@@ -10,7 +10,7 @@ FILES=1000
|
||||
export LANG=$LOCALE
|
||||
|
||||
randomfilename () {
|
||||
name="f"
|
||||
name=""
|
||||
count=$(jot -r 1 10 3)
|
||||
for r in $(jot -r $count 7 0); do
|
||||
r=$(( r + 0 ))
|
||||
@@ -40,14 +40,12 @@ randomfilename () {
|
||||
cd $FS/test
|
||||
|
||||
for i in $(jot $FILES); do
|
||||
newfile=$(randomfilename)
|
||||
case $testfiles in
|
||||
*"$newfile"*) continue;;
|
||||
esac
|
||||
testfiles="$(randomfilename)
|
||||
$testfiles"
|
||||
testfiles="$testfiles
|
||||
$(randomfilename)"
|
||||
done
|
||||
|
||||
testfiles=$(echo "$testfiles" | grep "." | sort -R | uniq)
|
||||
|
||||
for f in $testfiles; do
|
||||
echo "$f" > $f
|
||||
done
|
||||
|
||||
@@ -10,7 +10,7 @@ FILES=1000
|
||||
export LANG=$LOCALE
|
||||
|
||||
randomfilename () {
|
||||
name="f"
|
||||
name=""
|
||||
count=$(jot -r 1 10 3)
|
||||
for r in $(jot -r $count 7 0); do
|
||||
r=$(( r + 0 ))
|
||||
@@ -41,14 +41,12 @@ randomfilename () {
|
||||
cd $FS/test
|
||||
|
||||
for i in $(jot $FILES); do
|
||||
newfile=$(randomfilename)
|
||||
case $testfiles in
|
||||
*"$newfile"*) continue;;
|
||||
esac
|
||||
testfiles="$(randomfilename)
|
||||
$testfiles"
|
||||
testfiles="$testfiles
|
||||
$(randomfilename)"
|
||||
done
|
||||
|
||||
testfiles=$(echo "$testfiles" | grep "." | sort -R | uniq)
|
||||
|
||||
for f in $testfiles; do
|
||||
echo "$f" > $f
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user