(nsOutputStream)mConsole << systemDir << nsEndl;
(nsOutputStream&)mConsole << systemDir << nsEndl;
int FilesTest::SpecialSystemDirectories()//----------------------------------------------------------------------------------------{     mConsole << "Please verify that these are the paths to various system directories:" << nsEndl;    nsSpecialSystemDirectory systemDir(nsSpecialSystemDirectory::OS_DriveDirectory);    if (!systemDir.Valid())		return Failed();        mConsole << "OS_DriveDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::OS_TemporaryDirectory;    mConsole << "OS_TemporaryDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::OS_CurrentProcessDirectory;    mConsole << "OS_CurrentProcessDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    #ifdef XP_MAC    systemDir = nsSpecialSystemDirectory::Mac_SystemDirectory;    mConsole << "Mac_SystemDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_DesktopDirectory;    mConsole << "Mac_DesktopDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_TrashDirectory;    mConsole << "Mac_TrashDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_StartupDirectory;    mConsole << "Mac_StartupDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_ShutdownDirectory;    mConsole << "Mac_ShutdownDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_AppleMenuDirectory;    mConsole << "Mac_AppleMenuDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_ControlPanelDirectory;    mConsole << "Mac_ControlPanelDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_ExtensionDirectory;    mConsole << "Mac_ExtensionDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_FontsDirectory;    mConsole << "Mac_FontsDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_PreferencesDirectory;    mConsole << "Mac_PreferencesDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Mac_DocumentsDirectory;    mConsole << "Mac_DocumentsDirectory yields \t";    if (systemDir.Valid())    {        mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }#elif XP_PC    systemDir = nsSpecialSystemDirectory::Win_SystemDirectory;    mConsole << "Win_SystemDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Win_WindowsDirectory;    mConsole << "Win_WindowsDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }#else    systemDir = nsSpecialSystemDirectory::Unix_LocalDirectory;    mConsole << "Unix_LocalDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }    systemDir = nsSpecialSystemDirectory::Unix_LibDirectory;    mConsole << "Unix_LibDirectory yields \t";    if (systemDir.Valid())    {        (nsOutputStream)mConsole << systemDir << nsEndl;    }    else    {        mConsole <<   "nsnull"  << nsEndl;        return Failed();    }#endif            return Passed();} // FilesTest::SpecialSystemDirectories