VirtualBox

Ignore:
Timestamp:
Sep 13, 2011 2:09:15 PM (13 years ago)
Author:
vboxsync
Message:

One more Log redef gone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp

    r33595 r38737  
    11/** @file
    2  *
    3  * Testcase for shared folder case conversion
     2 * Testcase for shared folder case conversion code.
    43 */
    54
    65/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     6 * Copyright (C) 2006-2011 Oracle Corporation
    87 *
    98 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1918*   Header Files                                                               *
    2019*******************************************************************************/
     20#define LOG_GROUP LOG_GROUP_MISC
     21#define LOG_ENABLED
    2122#include <VBox/shflsvc.h>
    22 #include <iprt/stream.h>
     23#include <VBox/log.h>
    2324#include <iprt/alloc.h>
    2425#include <iprt/assert.h>
     26#include <iprt/file.h>
    2527#include <iprt/fs.h>
    2628#include <iprt/dir.h>
    27 #include <iprt/file.h>
     29#include <iprt/initterm.h>
    2830#include <iprt/path.h>
    2931#include <iprt/string.h>
     
    3133#include <stdio.h>
    3234
    33 /* override for linux host */
     35
     36/*******************************************************************************
     37*   Defined Constants And Macros                                               *
     38*******************************************************************************/
     39/* Override slash for non-windows hosts. */
    3440#undef RTPATH_DELIMITER
    3541#define RTPATH_DELIMITER       '\\'
    3642
    37 #undef Log
    38 #define Log(a)  printf a
    39 #undef Log2
    40 #define Log2    Log
    41 
     43/* Use our own RTPath and RTDir methods. */
    4244#define RTPathQueryInfo     rtPathQueryInfo
    4345#define RTDirOpenFiltered   rtDirOpenFiltered
     
    4547#define RTDirReadEx         rtDirReadEx
    4648
     49
     50/*******************************************************************************
     51*   Global Variables                                                           *
     52*******************************************************************************/
    4753static int iDirList = 0;
    4854static int iDirFile = 0;
     
    103109    if (!strcmp(pszPath, "c:\\*"))
    104110        iDirList = 1;
    105     else
    106     if (!strcmp(pszPath, "c:\\test dir\\*"))
     111    else if (!strcmp(pszPath, "c:\\test dir\\*"))
    107112        iDirList = 2;
    108     else
    109     if (!strcmp(pszPath, "c:\\test dir\\SUBDIR\\*"))
     113    else if (!strcmp(pszPath, "c:\\test dir\\SUBDIR\\*"))
    110114        iDirList = 3;
    111115    else
     
    401405
    402406
    403 int main(int argc, char **argv)
     407int main()
    404408{
    405409    char szTest[128];
     410
     411    RTR3InitExeNoArguments(0);
     412    RTLogFlush(NULL);
     413    RTLogDestinations(NULL, "stdout");
     414    RTLogGroupSettings(NULL, "misc=~0");
     415    RTLogFlags(NULL, "unbuffered");
    406416
    407417    strcpy(szTest, "c:\\test Dir\\z.bAt");
     
    425435    return 0;
    426436}
     437
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette