test: when starting tests print the attach flags mask
authorDjalal Harouni <tixxdz@opendz.org>
Wed, 17 Dec 2014 20:31:31 +0000 (21:31 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Wed, 17 Dec 2014 20:39:45 +0000 (21:39 +0100)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/kdbus-test.c

index 0a440ab1c108588602813c34803fcb989dbc6488..0b423954dbbe1b0e1625d7a784af59b64eccf1ae 100644 (file)
@@ -751,6 +751,7 @@ int start_tests(struct kdbus_test_args *kdbus_args)
 {
        int ret;
        bool namespaces;
+       uint64_t kdbus_param_mask;
        static char fspath[4096], parampath[4096];
 
        namespaces = (kdbus_args->mntns || kdbus_args->pidns ||
@@ -792,6 +793,14 @@ int start_tests(struct kdbus_test_args *kdbus_args)
                 kdbus_args->module);
        kdbus_args->mask_param_path = parampath;
 
+       ret = kdbus_sysfs_get_parameter_mask(kdbus_args->mask_param_path,
+                                            &kdbus_param_mask);
+       if (ret < 0)
+               return TEST_ERR;
+
+       printf("# Starting tests with an attach_flags_mask=0x%llx\n",
+               (unsigned long long)kdbus_param_mask);
+
        /* Start tests */
        if (namespaces)
                ret = run_tests_in_namespaces(kdbus_args);