pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:10776:
// - combine_path_nt test_eq([[combine_path_nt("/","/fo\1111/bar/gazonk/../../")]],"/fo\1111/") test_eq([[combine_path_nt("a:/","/fo\1111/bar/gazonk/../../")]],"a:/fo\1111/") test_eq([[combine_path_nt("a:/", "/foo","bar")+combine_path_nt("/foo","bar")]], "a:/foo/bar/foo/bar") // - combine_path_unix test_eq([[combine_path_unix("/","/fo\1111/bar/gazonk/../../")]],"/fo\1111/")
+
// - append_path_nt
+
test_any([[
+
// Bug 7723.
+
int i;
+
for (i = 0; i < 1000; i++) {
+
array(string) a = (array(string))(({""}) + allocate(5, random)(10000));
+
string ret = Stdio.append_path_nt("/", a*"/");
+
if (ret != (a*"/")) {
+
return sprintf("%d: %O != %O\n", i, ret, a*"/");
+
}
+
}
+
return "";
+
]], "")
+
// - compile // - compile_file // - compile_string // see test for clone() cond_begin([[all_constants()->thread_create]]) test_any([[ string file = #"