aboutsummaryrefslogtreecommitdiff
path: root/samples/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/client.c')
-rw-r--r--samples/client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/samples/client.c b/samples/client.c
index bd8d2b3..afed47a 100644
--- a/samples/client.c
+++ b/samples/client.c
@@ -905,6 +905,14 @@ int main(int argc, char *argv[])
ret = migrate_from(sock);
}
+ /*
+ * Try to touch BAR0, we should get an error as the device is stopped.
+ */
+ ret = access_bar0(sock);
+ if (ret != EINVAL) {
+ fprintf(stderr, "expected an error, got %d instead\n", ret);
+ }
+
return 0;
}