<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 19, 2020 at 5:28 PM Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span><br>
--- /dev/null<br>
+++ b/testcases/kernel/syscalls/fsopen/fsopen01.c<br>
@@ -0,0 +1,85 @@<br>
+// SPDX-License-Identifier: GPL-2.0-or-later<br>
+/*<br>
+ * Copyright (c) 2020 Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>><br>
+ *<br>
+ * Description:<br>
+ * Basic fsopen() test which tries to configure and mount the filesystem as<br>
+ * well.<br>
+ */<br>
+#include "tst_test.h"<br>
+#include "lapi/fsmount.h"<br>
+<br>
+#define MNTPOINT       "mntpoint"<br>
+<br>
+static struct tcase {<br>
+       char *name;<br>
+       unsigned int flags;<br>
+} tcases[] = {<br>
+       {"Flag 0", 0},<br>
+       {"Flag FSOPEN_CLOEXEC", FSOPEN_CLOEXEC},<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Maybe better to remove the 'Flag' keywords from here and add it to the print sentence.</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+static void run(unsigned int n)<br>
+{<br>
<span class="gmail_default" style="font-size:small">...</span><br>
+<br>
+       if (!tst_ismount(MNTPOINT))<br>
+               tst_res(TPASS, "%s: fsopen() passed", tc->name);<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">tst_res(TPASS, "Flag %s: fsopen() passed", tc->name);</div></div><div> </div><div>-- </div></div><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>