Lines Matching refs:proc_cmdline_get_key

38         assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux"));  in TEST()
41 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
44 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
51 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
54 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
57 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
109 TEST(proc_cmdline_get_key) { in TEST() argument
114 assert_se(proc_cmdline_get_key("", 0, &value) == -EINVAL); in TEST()
115 assert_se(proc_cmdline_get_key("abc", 0, NULL) == 0); in TEST()
116 assert_se(proc_cmdline_get_key("abc", 0, &value) == 0 && value == NULL); in TEST()
117 … assert_se(proc_cmdline_get_key("abc", PROC_CMDLINE_VALUE_OPTIONAL, &value) == 0 && value == NULL); in TEST()
119 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
121 …assert_se(proc_cmdline_get_key("foo_bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(va… in TEST()
123 assert_se(proc_cmdline_get_key("foo-bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
125 …assert_se(proc_cmdline_get_key("foo-bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(va… in TEST()
127 assert_se(proc_cmdline_get_key("foo-bar", 0, NULL) == 0); in TEST()
128 assert_se(proc_cmdline_get_key("foo-bar", PROC_CMDLINE_VALUE_OPTIONAL, NULL) == -EINVAL); in TEST()
130 assert_se(proc_cmdline_get_key("wuff-piep", 0, &value) > 0 && streq_ptr(value, "tuet")); in TEST()
132 …assert_se(proc_cmdline_get_key("wuff-piep", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(… in TEST()
134 assert_se(proc_cmdline_get_key("wuff_piep", 0, &value) > 0 && streq_ptr(value, "tuet")); in TEST()
136 …assert_se(proc_cmdline_get_key("wuff_piep", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(… in TEST()
138 assert_se(proc_cmdline_get_key("wuff_piep", 0, NULL) == 0); in TEST()
139 assert_se(proc_cmdline_get_key("wuff_piep", PROC_CMDLINE_VALUE_OPTIONAL, NULL) == -EINVAL); in TEST()
141 assert_se(proc_cmdline_get_key("zumm", 0, &value) == 0 && value == NULL); in TEST()
142 … assert_se(proc_cmdline_get_key("zumm", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && value == NULL); in TEST()
143 assert_se(proc_cmdline_get_key("zumm", 0, NULL) > 0); in TEST()
145 assert_se(proc_cmdline_get_key("spaaace", 0, &value) > 0 && streq_ptr(value, "ö ü ß")); in TEST()
148 assert_se(proc_cmdline_get_key("ticks", 0, &value) > 0 && streq_ptr(value, "''")); in TEST()
151 assert_se(proc_cmdline_get_key("kkk", 0, &value) > 0 && streq_ptr(value, "uuu")); in TEST()