lkml.org 
[lkml]   [2022]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 12/18] KVM: selftests/rseq_test: name the migration thread and some cleanup
On Mon, Oct 24, 2022, Wei Wang wrote:
> @@ -272,7 +271,8 @@ int main(int argc, char *argv[])
> TEST_ASSERT(i > (NR_TASK_MIGRATIONS / 2),
> "Only performed %d KVM_RUNs, task stalled too much?\n", i);
>
> - pthread_join(migration_thread, NULL);
> + r = pthread_join(migration_thread, NULL);
> + TEST_ASSERT(r == 0, "failed to join the migration thread");

!r is the preferred style.

>
> kvm_vm_free(vm);
>
> --
> 2.27.0
>

\
 
 \ /
  Last update: 2022-10-27 02:19    [W:0.214 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site