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

2019-10-04 Thread Laurent Vivier
Le 04/10/2019 à 05:43, Mao Zhongyi a écrit : > If stressone() or stress() exits it's because of a failure > because the test runs forever otherwise, so change stressone > type to void and stress should always return -1 to make the > path of 'if (stress(ramsizeGB, ncpus) < 0)' can be reached. > >

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

2019-10-03 Thread Mao Zhongyi
If stressone() or stress() exits it's because of a failure because the test runs forever otherwise, so change stressone type to void and stress should always return -1 to make the path of 'if (stress(ramsizeGB, ncpus) < 0)' can be reached. Signed-off-by: Mao Zhongyi --- tests/migration/stress.c