• Home
  • Raw
  • Download

Lines Matching refs:glob

69 TEST(glob, glob_result_GLOB_NOMATCH) {  in TEST()  argument
71 ASSERT_EQ(GLOB_NOMATCH, glob("/will/match/nothing", 0, nullptr, &g)); in TEST()
76 TEST(glob, glob_GLOB_APPEND) { in TEST() argument
78 ASSERT_EQ(0, glob("/proc/version", 0, nullptr, &g)); in TEST()
83 ASSERT_EQ(0, glob("/proc/version", GLOB_APPEND, nullptr, &g)); in TEST()
92 TEST(glob, glob_GLOB_DOOFFS) { in TEST() argument
95 ASSERT_EQ(0, glob("/proc/version", GLOB_DOOFFS, nullptr, &g)); in TEST()
114 TEST(glob, glob_gl_errfunc) { in TEST() argument
120 ASSERT_EQ(GLOB_NOMATCH, glob("/opendir-fail/x*", GLOB_ALTDIRFUNC, test_error_callback, &g)); in TEST()
126 ASSERT_EQ(GLOB_ABORTED, glob("/opendir-fail/x*", GLOB_ALTDIRFUNC, test_error_callback, &g)); in TEST()
131 TEST(glob, glob_GLOB_ERR) { in TEST() argument
135 ASSERT_EQ(GLOB_NOMATCH, glob("/opendir-fail/x*", GLOB_ALTDIRFUNC, nullptr, &g)); in TEST()
137 ASSERT_EQ(GLOB_ABORTED, glob("/opendir-fail/x*", GLOB_ALTDIRFUNC | GLOB_ERR, nullptr, &g)); in TEST()
140 TEST(glob, glob_GLOB_MARK) { in TEST() argument
147 ASSERT_EQ(0, glob(td.path, GLOB_MARK, nullptr, &g)); in TEST()
155 ASSERT_EQ(0, glob(tf.path, GLOB_MARK, nullptr, &g)); in TEST()
164 TEST(glob, glob_GLOB_NOCHECK) { in TEST() argument
166 ASSERT_EQ(0, glob("/will/match/nothing", GLOB_NOCHECK, nullptr, &g)); in TEST()
174 TEST(glob, glob_GLOB_NOSORT) { in TEST() argument
180 ASSERT_EQ(0, glob("*", GLOB_ALTDIRFUNC, nullptr, &g)); in TEST()
189 ASSERT_EQ(0, glob("*", GLOB_ALTDIRFUNC | GLOB_NOSORT, nullptr, &g)); in TEST()
199 TEST(glob, glob_GLOB_MAGCHAR) { in TEST() argument
201 ASSERT_EQ(GLOB_NOMATCH, glob("/does-not-exist", 0, nullptr, &g)); in TEST()
203 ASSERT_EQ(GLOB_NOMATCH, glob("/does-not-exist*", 0, nullptr, &g)); in TEST()
207 ASSERT_EQ(GLOB_NOMATCH, glob("/does-not-exist", GLOB_MAGCHAR, nullptr, &g)); in TEST()
216 ASSERT_EQ(expected_result, glob(pattern, GLOB_ALTDIRFUNC, nullptr, &g)) << pattern; in CheckGlob()
228 TEST(glob, glob_globbing) { in TEST() argument
236 TEST(glob, glob_globbing_rsc) { in TEST() argument