1*b0d29bc4SBrooks Davis // Copyright 2010 The Kyua Authors.
2*b0d29bc4SBrooks Davis // All rights reserved.
3*b0d29bc4SBrooks Davis //
4*b0d29bc4SBrooks Davis // Redistribution and use in source and binary forms, with or without
5*b0d29bc4SBrooks Davis // modification, are permitted provided that the following conditions are
6*b0d29bc4SBrooks Davis // met:
7*b0d29bc4SBrooks Davis //
8*b0d29bc4SBrooks Davis // * Redistributions of source code must retain the above copyright
9*b0d29bc4SBrooks Davis // notice, this list of conditions and the following disclaimer.
10*b0d29bc4SBrooks Davis // * Redistributions in binary form must reproduce the above copyright
11*b0d29bc4SBrooks Davis // notice, this list of conditions and the following disclaimer in the
12*b0d29bc4SBrooks Davis // documentation and/or other materials provided with the distribution.
13*b0d29bc4SBrooks Davis // * Neither the name of Google Inc. nor the names of its contributors
14*b0d29bc4SBrooks Davis // may be used to endorse or promote products derived from this software
15*b0d29bc4SBrooks Davis // without specific prior written permission.
16*b0d29bc4SBrooks Davis //
17*b0d29bc4SBrooks Davis // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*b0d29bc4SBrooks Davis // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*b0d29bc4SBrooks Davis // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20*b0d29bc4SBrooks Davis // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21*b0d29bc4SBrooks Davis // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22*b0d29bc4SBrooks Davis // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23*b0d29bc4SBrooks Davis // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24*b0d29bc4SBrooks Davis // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25*b0d29bc4SBrooks Davis // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26*b0d29bc4SBrooks Davis // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27*b0d29bc4SBrooks Davis // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*b0d29bc4SBrooks Davis
29*b0d29bc4SBrooks Davis #include "utils/fs/path.hpp"
30*b0d29bc4SBrooks Davis
31*b0d29bc4SBrooks Davis extern "C" {
32*b0d29bc4SBrooks Davis #include <unistd.h>
33*b0d29bc4SBrooks Davis }
34*b0d29bc4SBrooks Davis
35*b0d29bc4SBrooks Davis #include <set>
36*b0d29bc4SBrooks Davis
37*b0d29bc4SBrooks Davis #include <atf-c++.hpp>
38*b0d29bc4SBrooks Davis
39*b0d29bc4SBrooks Davis #include "utils/fs/exceptions.hpp"
40*b0d29bc4SBrooks Davis
41*b0d29bc4SBrooks Davis using utils::fs::invalid_path_error;
42*b0d29bc4SBrooks Davis using utils::fs::join_error;
43*b0d29bc4SBrooks Davis using utils::fs::path;
44*b0d29bc4SBrooks Davis
45*b0d29bc4SBrooks Davis
46*b0d29bc4SBrooks Davis #define REQUIRE_JOIN_ERROR(path1, path2, expr) \
47*b0d29bc4SBrooks Davis try { \
48*b0d29bc4SBrooks Davis expr; \
49*b0d29bc4SBrooks Davis ATF_FAIL("Expecting join_error but no error raised"); \
50*b0d29bc4SBrooks Davis } catch (const join_error& e) { \
51*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(path1, e.textual_path1()); \
52*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(path2, e.textual_path2()); \
53*b0d29bc4SBrooks Davis }
54*b0d29bc4SBrooks Davis
55*b0d29bc4SBrooks Davis
56*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(normalize__ok);
ATF_TEST_CASE_BODY(normalize__ok)57*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(normalize__ok)
58*b0d29bc4SBrooks Davis {
59*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(".", path(".").str());
60*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("..", path("..").str());
61*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/", path("/").str());
62*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/", path("///").str());
63*b0d29bc4SBrooks Davis
64*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo", path("foo").str());
65*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", path("foo/bar").str());
66*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", path("foo/bar/").str());
67*b0d29bc4SBrooks Davis
68*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo", path("/foo").str());
69*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo/bar", path("/foo/bar").str());
70*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo/bar", path("/foo/bar/").str());
71*b0d29bc4SBrooks Davis
72*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo", path("///foo").str());
73*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo/bar", path("///foo///bar").str());
74*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo/bar", path("///foo///bar///").str());
75*b0d29bc4SBrooks Davis
76*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("./foo/bar", path("./foo/bar").str());
77*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("./foo/bar", path("./foo/./bar").str());
78*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("./foo/bar", path("././foo/./bar").str());
79*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", path("foo/././bar").str());
80*b0d29bc4SBrooks Davis }
81*b0d29bc4SBrooks Davis
82*b0d29bc4SBrooks Davis
83*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(normalize__invalid);
ATF_TEST_CASE_BODY(normalize__invalid)84*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(normalize__invalid)
85*b0d29bc4SBrooks Davis {
86*b0d29bc4SBrooks Davis try {
87*b0d29bc4SBrooks Davis path("");
88*b0d29bc4SBrooks Davis fail("invalid_path_error not raised");
89*b0d29bc4SBrooks Davis } catch (const invalid_path_error& e) {
90*b0d29bc4SBrooks Davis ATF_REQUIRE(e.invalid_path().empty());
91*b0d29bc4SBrooks Davis }
92*b0d29bc4SBrooks Davis }
93*b0d29bc4SBrooks Davis
94*b0d29bc4SBrooks Davis
95*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(is_absolute);
ATF_TEST_CASE_BODY(is_absolute)96*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(is_absolute)
97*b0d29bc4SBrooks Davis {
98*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/").is_absolute());
99*b0d29bc4SBrooks Davis ATF_REQUIRE( path("////").is_absolute());
100*b0d29bc4SBrooks Davis ATF_REQUIRE( path("////a").is_absolute());
101*b0d29bc4SBrooks Davis ATF_REQUIRE( path("//a//").is_absolute());
102*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("a////").is_absolute());
103*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("../foo").is_absolute());
104*b0d29bc4SBrooks Davis }
105*b0d29bc4SBrooks Davis
106*b0d29bc4SBrooks Davis
107*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(is_parent_of);
ATF_TEST_CASE_BODY(is_parent_of)108*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(is_parent_of)
109*b0d29bc4SBrooks Davis {
110*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/").is_parent_of(path("/")));
111*b0d29bc4SBrooks Davis ATF_REQUIRE( path(".").is_parent_of(path(".")));
112*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a").is_parent_of(path("/a")));
113*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a/b/c").is_parent_of(path("/a/b/c")));
114*b0d29bc4SBrooks Davis ATF_REQUIRE( path("a").is_parent_of(path("a")));
115*b0d29bc4SBrooks Davis ATF_REQUIRE( path("a/b/c").is_parent_of(path("a/b/c")));
116*b0d29bc4SBrooks Davis
117*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a/b/c").is_parent_of(path("/a/b/c/d")));
118*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a/b/c").is_parent_of(path("/a/b/c/d/e")));
119*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("/a/b/c").is_parent_of(path("a/b/c")));
120*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("/a/b/c").is_parent_of(path("a/b/c/d/e")));
121*b0d29bc4SBrooks Davis
122*b0d29bc4SBrooks Davis ATF_REQUIRE( path("a/b/c").is_parent_of(path("a/b/c/d")));
123*b0d29bc4SBrooks Davis ATF_REQUIRE( path("a/b/c").is_parent_of(path("a/b/c/d/e")));
124*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("a/b/c").is_parent_of(path("/a/b/c")));
125*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("a/b/c").is_parent_of(path("/a/b/c/d/e")));
126*b0d29bc4SBrooks Davis
127*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("/a/b/c/d/e").is_parent_of(path("/a/b/c")));
128*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("/a/b/c/d/e").is_parent_of(path("a/b/c")));
129*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("a/b/c/d/e").is_parent_of(path("/a/b/c")));
130*b0d29bc4SBrooks Davis ATF_REQUIRE(!path("a/b/c/d/e").is_parent_of(path("a/b/c")));
131*b0d29bc4SBrooks Davis }
132*b0d29bc4SBrooks Davis
133*b0d29bc4SBrooks Davis
134*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(ncomponents);
ATF_TEST_CASE_BODY(ncomponents)135*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(ncomponents)
136*b0d29bc4SBrooks Davis {
137*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(1, path(".").ncomponents());
138*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(1, path("/").ncomponents());
139*b0d29bc4SBrooks Davis
140*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(1, path("abc").ncomponents());
141*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(1, path("abc/").ncomponents());
142*b0d29bc4SBrooks Davis
143*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(2, path("/abc").ncomponents());
144*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(3, path("/abc/def").ncomponents());
145*b0d29bc4SBrooks Davis
146*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(2, path("abc/def").ncomponents());
147*b0d29bc4SBrooks Davis }
148*b0d29bc4SBrooks Davis
149*b0d29bc4SBrooks Davis
150*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(branch_path);
ATF_TEST_CASE_BODY(branch_path)151*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(branch_path)
152*b0d29bc4SBrooks Davis {
153*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(".", path(".").branch_path().str());
154*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(".", path("foo").branch_path().str());
155*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo", path("foo/bar").branch_path().str());
156*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/", path("/foo").branch_path().str());
157*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("/foo", path("/foo/bar").branch_path().str());
158*b0d29bc4SBrooks Davis }
159*b0d29bc4SBrooks Davis
160*b0d29bc4SBrooks Davis
161*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(leaf_name);
ATF_TEST_CASE_BODY(leaf_name)162*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(leaf_name)
163*b0d29bc4SBrooks Davis {
164*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ(".", path(".").leaf_name());
165*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo", path("foo").leaf_name());
166*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("bar", path("foo/bar").leaf_name());
167*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo", path("/foo").leaf_name());
168*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("bar", path("/foo/bar").leaf_name());
169*b0d29bc4SBrooks Davis }
170*b0d29bc4SBrooks Davis
171*b0d29bc4SBrooks Davis
172*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(to_absolute);
ATF_TEST_CASE_BODY(to_absolute)173*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(to_absolute)
174*b0d29bc4SBrooks Davis {
175*b0d29bc4SBrooks Davis ATF_REQUIRE(::chdir("/bin") != -1);
176*b0d29bc4SBrooks Davis const std::string absolute = path("ls").to_absolute().str();
177*b0d29bc4SBrooks Davis // In some systems (e.g. in Fedora 17), /bin is really a symlink to
178*b0d29bc4SBrooks Davis // /usr/bin. Doing an explicit match of 'absolute' to /bin/ls fails in such
179*b0d29bc4SBrooks Davis // case. Instead, attempt doing a search in the generated path just for a
180*b0d29bc4SBrooks Davis // substring containing '/bin/ls'. Note that this can still fail if /bin is
181*b0d29bc4SBrooks Davis // linked to something arbitrary like /a/b... but let's just assume this
182*b0d29bc4SBrooks Davis // does not happen.
183*b0d29bc4SBrooks Davis ATF_REQUIRE(absolute.find("/bin/ls") != std::string::npos);
184*b0d29bc4SBrooks Davis }
185*b0d29bc4SBrooks Davis
186*b0d29bc4SBrooks Davis
187*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(compare_less_than);
ATF_TEST_CASE_BODY(compare_less_than)188*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(compare_less_than)
189*b0d29bc4SBrooks Davis {
190*b0d29bc4SBrooks Davis ATF_REQUIRE(!(path("/") < path("/")));
191*b0d29bc4SBrooks Davis ATF_REQUIRE(!(path("/") < path("///")));
192*b0d29bc4SBrooks Davis
193*b0d29bc4SBrooks Davis ATF_REQUIRE(!(path("/a/b/c") < path("/a/b/c")));
194*b0d29bc4SBrooks Davis
195*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a") < path("/b"));
196*b0d29bc4SBrooks Davis ATF_REQUIRE(!(path("/b") < path("/a")));
197*b0d29bc4SBrooks Davis
198*b0d29bc4SBrooks Davis ATF_REQUIRE( path("/a") < path("/aa"));
199*b0d29bc4SBrooks Davis ATF_REQUIRE(!(path("/aa") < path("/a")));
200*b0d29bc4SBrooks Davis }
201*b0d29bc4SBrooks Davis
202*b0d29bc4SBrooks Davis
203*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(compare_equal);
ATF_TEST_CASE_BODY(compare_equal)204*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(compare_equal)
205*b0d29bc4SBrooks Davis {
206*b0d29bc4SBrooks Davis ATF_REQUIRE(path("/") == path("///"));
207*b0d29bc4SBrooks Davis ATF_REQUIRE(path("/a") == path("///a"));
208*b0d29bc4SBrooks Davis ATF_REQUIRE(path("/a") == path("///a///"));
209*b0d29bc4SBrooks Davis
210*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") == path("a//b//c"));
211*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") == path("a//b//c///"));
212*b0d29bc4SBrooks Davis }
213*b0d29bc4SBrooks Davis
214*b0d29bc4SBrooks Davis
215*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(compare_different);
ATF_TEST_CASE_BODY(compare_different)216*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(compare_different)
217*b0d29bc4SBrooks Davis {
218*b0d29bc4SBrooks Davis ATF_REQUIRE(path("/") != path("//a/"));
219*b0d29bc4SBrooks Davis ATF_REQUIRE(path("/a") != path("a///"));
220*b0d29bc4SBrooks Davis
221*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") != path("a/b"));
222*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") != path("a//b"));
223*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") != path("/a/b/c"));
224*b0d29bc4SBrooks Davis ATF_REQUIRE(path("a/b/c") != path("/a//b//c"));
225*b0d29bc4SBrooks Davis }
226*b0d29bc4SBrooks Davis
227*b0d29bc4SBrooks Davis
228*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(concat__to_string);
ATF_TEST_CASE_BODY(concat__to_string)229*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(concat__to_string)
230*b0d29bc4SBrooks Davis {
231*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", (path("foo") / "bar").str());
232*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", (path("foo/") / "bar").str());
233*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar/baz", (path("foo/") / "bar//baz///").str());
234*b0d29bc4SBrooks Davis
235*b0d29bc4SBrooks Davis ATF_REQUIRE_THROW(invalid_path_error, path("foo") / "");
236*b0d29bc4SBrooks Davis REQUIRE_JOIN_ERROR("foo", "/a/b", path("foo") / "/a/b");
237*b0d29bc4SBrooks Davis }
238*b0d29bc4SBrooks Davis
239*b0d29bc4SBrooks Davis
240*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(concat__to_path);
ATF_TEST_CASE_BODY(concat__to_path)241*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(concat__to_path)
242*b0d29bc4SBrooks Davis {
243*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", (path("foo") / "bar").str());
244*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar", (path("foo/") / "bar").str());
245*b0d29bc4SBrooks Davis ATF_REQUIRE_EQ("foo/bar/baz", (path("foo/") / "bar//baz///").str());
246*b0d29bc4SBrooks Davis
247*b0d29bc4SBrooks Davis REQUIRE_JOIN_ERROR("foo", "/a/b", path("foo") / path("/a/b"));
248*b0d29bc4SBrooks Davis }
249*b0d29bc4SBrooks Davis
250*b0d29bc4SBrooks Davis
251*b0d29bc4SBrooks Davis ATF_TEST_CASE_WITHOUT_HEAD(use_as_key);
ATF_TEST_CASE_BODY(use_as_key)252*b0d29bc4SBrooks Davis ATF_TEST_CASE_BODY(use_as_key)
253*b0d29bc4SBrooks Davis {
254*b0d29bc4SBrooks Davis std::set< path > paths;
255*b0d29bc4SBrooks Davis paths.insert(path("/a"));
256*b0d29bc4SBrooks Davis ATF_REQUIRE(paths.find(path("//a")) != paths.end());
257*b0d29bc4SBrooks Davis ATF_REQUIRE(paths.find(path("a")) == paths.end());
258*b0d29bc4SBrooks Davis }
259*b0d29bc4SBrooks Davis
260*b0d29bc4SBrooks Davis
ATF_INIT_TEST_CASES(tcs)261*b0d29bc4SBrooks Davis ATF_INIT_TEST_CASES(tcs)
262*b0d29bc4SBrooks Davis {
263*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, normalize__ok);
264*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, normalize__invalid);
265*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, is_absolute);
266*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, is_parent_of);
267*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, ncomponents);
268*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, branch_path);
269*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, leaf_name);
270*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, to_absolute);
271*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, compare_less_than);
272*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, compare_equal);
273*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, compare_different);
274*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, concat__to_string);
275*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, concat__to_path);
276*b0d29bc4SBrooks Davis ATF_ADD_TEST_CASE(tcs, use_as_key);
277*b0d29bc4SBrooks Davis }
278