[PATCH] selftests:vm: use swap() to make code cleaner