|
@@ -2,25 +2,25 @@
|
|
|
#define CORE_ERROR_SIMULATOR_H
|
|
|
|
|
|
#ifdef ERROR_SIMULATOR
|
|
|
-extern bool coreFailFileClose;
|
|
|
-extern bool coreFailTimeGet;
|
|
|
-extern bool coreFailThreadInit;
|
|
|
-extern bool coreFailMutexInit;
|
|
|
-extern bool coreFailMutexLock;
|
|
|
-extern bool coreFailMutexUnlock;
|
|
|
-#define CORE_FILE_CLOSE_FAIL coreFailFile
|
|
|
-#define CORE_TIME_GET_FAIL coreFailTimeGet
|
|
|
-#define CORE_THREAD_INIT_FAIL coreFailThreadInit
|
|
|
-#define CORE_MUTEX_INIT_FAIL coreFailMutexInit
|
|
|
-#define CORE_MUTEX_LOCK_FAIL coreFailMutexLock
|
|
|
-#define CORE_MUTEX_UNLOCK_FAIL coreFailMutexUnlock
|
|
|
+extern bool failFileClose;
|
|
|
+extern bool failTimeGet;
|
|
|
+extern bool failThreadInit;
|
|
|
+extern bool failMutexInit;
|
|
|
+extern bool failMutexLock;
|
|
|
+extern bool failMutexUnlock;
|
|
|
+#define FILE_CLOSE_FAIL failFile
|
|
|
+#define TIME_GET_FAIL failTimeGet
|
|
|
+#define THREAD_INIT_FAIL failThreadInit
|
|
|
+#define MUTEX_INIT_FAIL failMutexInit
|
|
|
+#define MUTEX_LOCK_FAIL failMutexLock
|
|
|
+#define MUTEX_UNLOCK_FAIL failMutexUnlock
|
|
|
#else
|
|
|
-#define CORE_FILE_CLOSE_FAIL false
|
|
|
-#define CORE_TIME_GET_FAIL false
|
|
|
-#define CORE_THREAD_INIT_FAIL false
|
|
|
-#define CORE_MUTEX_INIT_FAIL false
|
|
|
-#define CORE_MUTEX_LOCK_FAIL false
|
|
|
-#define CORE_MUTEX_UNLOCK_FAIL false
|
|
|
+#define FILE_CLOSE_FAIL false
|
|
|
+#define TIME_GET_FAIL false
|
|
|
+#define THREAD_INIT_FAIL false
|
|
|
+#define MUTEX_INIT_FAIL false
|
|
|
+#define MUTEX_LOCK_FAIL false
|
|
|
+#define MUTEX_UNLOCK_FAIL false
|
|
|
#endif
|
|
|
|
|
|
#endif
|