Index: /trunk/src/VBox/VMM/testcase/Makefile.kmk
===================================================================
--- /trunk/src/VBox/VMM/testcase/Makefile.kmk	(revision 45529)
+++ /trunk/src/VBox/VMM/testcase/Makefile.kmk	(revision 45530)
@@ -267,8 +267,9 @@
  tstMicro_SOURCES        = tstMicro.cpp
  tstMicro_LIBS           = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
+ tstMicro_DEFS           = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
 
  tstMicroRC_TEMPLATE     = VBoxRc
  tstMicroRC_SOURCES      = tstMicroRC.cpp tstMicroRCA.asm
- tstMicroRC_DEFS         =
+ tstMicroRC_DEFS         = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
  tstMicroRC_INCS         = $(VBOX_PATH_VMM_SRC)/testcase
  ifeq ($(VBOX_LDR_FMT32),pe)
Index: /trunk/src/VBox/VMM/testcase/tstMicro.cpp
===================================================================
--- /trunk/src/VBox/VMM/testcase/tstMicro.cpp	(revision 45529)
+++ /trunk/src/VBox/VMM/testcase/tstMicro.cpp	(revision 45530)
@@ -280,4 +280,5 @@
 #endif
 
+#ifdef VBOX_WITH_RAW_MODE
     /*
      * Do the profiling.
@@ -317,6 +318,8 @@
             pTst->u64Overhead = cMin;
     }
-
-
+#endif
+
+
+#ifdef VBOX_WITH_RAW_MODE
     /* execute the trap/cycle profiling tests. */
     RTPrintf("\n");
@@ -330,5 +333,5 @@
         PrintResultTrap(pTst, enmTest, rc);
     }
-
+#endif
 
     RTPrintf(TESTCASE ": done!\n");
