Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpuset_memory_spread_test:Modify the creation of fifo files #1212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions testcases/kernel/controllers/cpuset/cpuset_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ setup()

mkdir -p "$CPUSET_TMP"
mkdir "$CPUSET"
mkfifo "$CPUSET_TMP/myfifo"
mount -t cgroup -o cpuset cpuset "$CPUSET" 2> /dev/null
if [ $? -ne 0 ]; then
cleanup
Expand All @@ -177,6 +178,7 @@ cleanup()
{
grep "$CPUSET" /proc/mounts >/dev/null 2>&1 || {
rm -rf "$CPUSET" >/dev/null 2>&1
rm -rf "$CPUSET_TMP" >/dev/null 2>&1
return 0
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mems_all="$(seq -s, 0 $((nr_mems-1)))"

nodedir="/sys/devices/system/node"

FIFO="./myfifo"
FIFO="$CPUSET_TMP/myfifo"

# memsinfo is an array implementation of the form of a multi-line string
# _0: value0
Expand Down Expand Up @@ -347,15 +347,9 @@ if [ $? -ne 0 ]; then
tst_brkm TFAIL "Creating DATAFILE failed."
fi

mkfifo $FIFO
if [ $? -ne 0 ]; then
rm -f DATAFILE
tst_brkm TFAIL "failed to mkfifo $FIFO"
fi

test_spread_page1
test_spread_page2

rm -f DATAFILE $FIFO
rm -f DATAFILE

exit $exit_status