Lines Matching refs:dir

67 	// absolute existing path (root dir), no leaf, no normalization
91 // absolute existing path (root dir), no leaf, auto normalization
117 // absolute existing path (root dir), no leaf, normalization forced
198 // absolute existing path (root dir), leaf, no normalization
228 // absolute existing path (root dir), leaf, auto normalization
323 // existing dir (root dir), no leaf, no normalization
327 BDirectory dir(pathName);
328 BPath path(&dir, NULL);
332 // existing dir, no leaf, no normalization
336 BDirectory dir(pathName);
337 BPath path(&dir, NULL);
341 // existing dir (root dir), no leaf, normalization forced
345 BDirectory dir(pathName);
346 BPath path(&dir, NULL, true);
350 // existing dir, no leaf, normalization forced
354 BDirectory dir(pathName);
355 BPath path(&dir, NULL, true);
359 // existing dir (root dir), leaf, no normalization
365 BDirectory dir(pathName);
366 BPath path(&dir, leafName);
370 // existing dir, leaf, no normalization
376 BDirectory dir(pathName);
377 BPath path(&dir, leafName);
381 // existing dir, leaf, auto normalization
387 BDirectory dir(pathName);
388 BPath path(&dir, leafName);
397 BDirectory dir(pathName);
398 BPath path(&dir, leafName);
402 // bad args (uninitialized dir)
405 BDirectory dir;
406 BPath path(&dir, "test");
410 // bad args (badly initialized dir)
413 BDirectory dir("/this/dir/doesn't/exists");
414 BPath path(&dir, "test");
418 // bad args (NULL dir)
427 // bad args (NULL dir)
437 // existing entry (root dir)
489 // existing entry (root dir)
540 BDirectory dir;
545 // absolute existing path (root dir), no leaf, no normalization
566 // absolute existing path (root dir), no leaf, auto normalization
589 // absolute existing path (root dir), no leaf, normalization forced
662 // absolute existing path (root dir), leaf, no normalization
689 // absolute existing path (root dir), leaf, auto normalization
785 // existing dir (root dir), no leaf, no normalization
788 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
789 CPPUNIT_ASSERT( path.SetTo(&dir, NULL) == B_OK );
793 dir.Unset();
794 // existing dir, no leaf, no normalization
797 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
798 CPPUNIT_ASSERT( path.SetTo(&dir, NULL) == B_OK );
802 dir.Unset();
803 // existing dir (root dir), no leaf, normalization forced
806 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
807 CPPUNIT_ASSERT( path.SetTo(&dir, NULL, true) == B_OK );
811 dir.Unset();
812 // existing dir, no leaf, normalization forced
815 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
816 CPPUNIT_ASSERT( path.SetTo(&dir, NULL, true) == B_OK );
820 dir.Unset();
821 // existing dir (root dir), leaf, no normalization
826 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
827 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
831 dir.Unset();
832 // existing dir, leaf, no normalization
837 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
838 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
842 dir.Unset();
843 // existing dir, leaf, auto normalization
848 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
849 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
853 dir.Unset();
858 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
859 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_BAD_VALUE );
863 dir.Unset();
864 // bad args (uninitialized dir)
866 CPPUNIT_ASSERT( dir.InitCheck() == B_NO_INIT );
867 CPPUNIT_ASSERT( path.SetTo(&dir, "test") == B_BAD_VALUE );
871 dir.Unset();
872 // bad args (badly initialized dir)
874 CPPUNIT_ASSERT( dir.SetTo("/this/dir/doesn't/exists") == B_ENTRY_NOT_FOUND );
875 CPPUNIT_ASSERT( path.SetTo(&dir, "test") == B_BAD_VALUE );
879 dir.Unset();
882 // bad args (NULL dir)
888 dir.Unset();
889 // bad args (NULL dir)
895 dir.Unset();
899 // existing entry (root dir)
952 // existing entry (root dir)
1003 // dir hierarchy, from existing to non-existing
1052 // root dir
1070 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1071 CPPUNIT_ASSERT( string("dir") == path.Leaf() );
1090 // root dir
1114 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1121 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1135 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );