[PATCH] selftests: vm: remove duplicated macro and use swap() to make code cleaner