VirtualBox

Ignore:
Timestamp:
Jan 30, 2020 11:41:25 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135903
Message:

Shared Clipboard/tstClipboardGH-X11: More linking fun required for the testboxes.

Location:
trunk/src/VBox/GuestHost/SharedClipboard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r82908 r82922  
    131131    { "LAST",                               SHCLX11FMT_INVALID,     VBOX_SHCL_FMT_NONE },
    132132};
     133
     134
     135#ifdef TESTCASE
     136# ifdef RT_OS_SOLARIS_10
     137char XtStrings [] = "";
     138WidgetClassRec* applicationShellWidgetClass;
     139char XtShellStrings [] = "";
     140int XmbTextPropertyToTextList(
     141    Display*            /* display */,
     142    XTextProperty*      /* text_prop */,
     143    char***             /* list_return */,
     144    int*                /* count_return */
     145)
     146{
     147  return 0;
     148}
     149# else
     150const char XtStrings [] = "";
     151_WidgetClassRec* applicationShellWidgetClass;
     152const char XtShellStrings [] = "";
     153# endif /* RT_OS_SOLARIS_10 */
     154#endif /* TESTCASE */
    133155
    134156
     
    770792} XFixesSelectionNotifyEvent;
    771793
     794#ifndef TESTCASE
    772795/**
    773796 * Waits until an event arrives and handle it if it is an XFIXES selection
     
    776799 * @param   pCtx                The X11 clipboard context to use.
    777800 */
    778 void clipPeekEventAndDoXFixesHandling(PSHCLX11CTX pCtx)
     801static void clipPeekEventAndDoXFixesHandling(PSHCLX11CTX pCtx)
    779802{
    780803    union
     
    798821}
    799822
    800 #ifndef TESTCASE
    801823/**
    802824 * The main loop of our X11 event thread.
     
    9801002    }
    9811003#endif
     1004
    9821005    if (RT_SUCCESS(rc))
    9831006    {
     
    9941017            rc = clipRegisterContext(pCtx);
    9951018    }
     1019
    9961020    if (RT_SUCCESS(rc))
    9971021    {
  • trunk/src/VBox/GuestHost/SharedClipboard/testcases/Makefile.kmk

    r82912 r82922  
    3333        ../clipboard-x11.cpp \
    3434        ../clipboard-common.cpp
    35   tstClipboardGH-X11_LIBPATH  = $(VBOX_LIBPATH_X11)
    36   tstClipboardGH-X11_LIBS     = Xt
    3735  tstClipboardGH-X11_CLEAN    = $(tstClipboardGH-X11_0_OUTDIR)/tstClipboardGH-X11.run
    3836
  • trunk/src/VBox/GuestHost/SharedClipboard/testcases/tstClipboardGH-X11.cpp

    r82906 r82922  
    455455    *ppReq = g_tst_pCompletedReq;
    456456}
    457 #ifdef RT_OS_SOLARIS_10
    458 char XtStrings [] = "";
    459 _WidgetClassRec* applicationShellWidgetClass;
    460 char XtShellStrings [] = "";
    461 int XmbTextPropertyToTextList(
    462     Display*            /* display */,
    463     XTextProperty*      /* text_prop */,
    464     char***             /* list_return */,
    465     int*                /* count_return */
    466 )
    467 {
    468   return 0;
    469 }
    470 #else
    471 const char XtStrings [] = "";
    472 _WidgetClassRec* applicationShellWidgetClass;
    473 const char XtShellStrings [] = "";
    474 #endif
    475457
    476458static void tstStringFromX11(RTTEST hTest, PSHCLX11CTX pCtx,
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