8 string step
= "abcde12345abcde12345abcde12345abcde12345";
9 string expected
= Directory
.GetCurrentDirectory();
11 /*if (Directory.Exists (step)) FIXME this doesn't work on linux
12 Directory.Delete (step, true);*/
15 for (int i
= 0; i
< 4000; ++i
) {
16 current
= Directory
.GetCurrentDirectory ();
17 if (!current
.Equals (expected
)) {
18 Console
.WriteLine ("expected dir {0} but got {1}", expected
, current
);
21 Console
.WriteLine("I={0} DIR={1}",i
,Directory
.GetCurrentDirectory().Length
);
22 Directory
.CreateDirectory (step
);
23 Directory
.SetCurrentDirectory (step
);
24 expected
+= Path
.DirectorySeparatorChar
+ step
;
26 } catch (PathTooLongException
) {
27 Console
.WriteLine ("ok, got PathTooLongException");
31 Console
.WriteLine ("Max path not reached");