qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/3] tests/migration:fix unreachable path in stress test


From: maozy
Subject: Re: [PATCH v2 3/3] tests/migration:fix unreachable path in stress test
Date: Tue, 1 Oct 2019 23:22:13 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0


ping...


On 9/11/19 11:31 AM, Mao Zhongyi wrote:
if stress function always return 0, the path
'if (stress(ramsizeGB, ncpus) < 0)' is nerver unreachable,
so fix it to allow the test failed.

Cc: address@hidden
Cc: address@hidden
Cc: address@hidden

Signed-off-by: Mao Zhongyi <address@hidden>
---
  tests/migration/stress.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/migration/stress.c b/tests/migration/stress.c
index 19a6eff5fd..35903d90c4 100644
--- a/tests/migration/stress.c
+++ b/tests/migration/stress.c
@@ -224,6 +224,7 @@ static int stressone(unsigned long long ramsizeMB)
              }
          }
      }
+    return 0;
  }
@@ -248,9 +249,7 @@ static int stress(unsigned long long ramsizeGB, int ncpus)
                         stressthread,   &ramsizeMB);
      }
- stressone(ramsizeMB);
-
-    return 0;
+    return stressone(ramsizeMB);
  }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]