aboutsummaryrefslogtreecommitdiff
path: root/tests/e1000-test.c
diff options
context:
space:
mode:
authorLi Qiang <liq3ea@163.com>2019-05-18 21:35:10 +0200
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2019-05-23 14:10:31 +0200
commit7a44091d48c1054a859f44a70ef280c7cef4698f (patch)
tree3dab78f42b056b7cc65ec6185fa2935a43df8f12 /tests/e1000-test.c
parent10b789b70cb78e7215f4efd2c568bec7b0b826a0 (diff)
tests: refactor fw_cfg_test
Currently, fw_cfg_test uses one QTestState for every test case. This will add all command lines for every test case and this is unnecessary. This patch split the test cases and for every test case it uses his own QTestState. This patch does following things: 1. Get rid of the global 'fw_cfg', this need add a uninit function 2. Convert every test case in a separate QTestState After this patch, we can add fw_cfg test case freely and will not have effect on other test cases. Signed-off-by: Li Qiang <liq3ea@163.com> Acked-by: Thomas Huth <thuth@redhat.com> Tested-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190424140643.62457-2-liq3ea@163.com> [PMD: Removed 'ret' local variable in main()] Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/e1000-test.c')
0 files changed, 0 insertions, 0 deletions