rcu: fixes test-logging.c by call drain_call_rcu before rmdir_full
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 15 Sep 2020 12:13:14 +0000 (20:13 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 16 Sep 2020 06:41:06 +0000 (08:41 +0200)
drain_call_rcu is necessary on win32, because under win32, if you
don't close the file before remove it, the remove would be fail.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20200915121318.247-23-luoyonggang@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/test-logging.c

index 783fe09a278f2893b7ca65331d710b884375f2bf..8b1522cfed9f1bdad3139092f0e0e9ae91072c7c 100644 (file)
@@ -210,6 +210,8 @@ int main(int argc, char **argv)
                          tmp_path, test_logfile_lock);
 
     rc = g_test_run();
+    qemu_log_close();
+    drain_call_rcu();
 
     rmdir_full(tmp_path);
     return rc;