#ifndef __EXAMPLES_TESTCASE_KERNEL_TC_INTERNAL_H
#define __EXAMPLES_TESTCASE_KERNEL_TC_INTERNAL_H
-#define RETURN_ERR return
-
#ifdef CONFIG_CPP_HAVE_VARARGS
#ifdef CONFIG_DEBUG_TC_KN
sigprocmask(SIG_SETMASK, &saved, NULL);
errout:
- RETURN_ERR;
+ return;
}
/**
#ifndef __EXAMPLES_TESTCASE_NETWORK_TC_INTERNAL_H
#define __EXAMPLES_TESTCASE_NETWORK_TC_INTERNAL_H
-#define RETURN_ERR return
-
#include "tc_common.h"
extern int total_pass;
#include <arastorage/arastorage.h>
#include <apps/shell/tash.h>
#include <tinyara/fs/fs_utils.h>
-#include "../../../tc_common.h"
+#include "tc_common.h"
/****************************************************************************
* Definitions
/// @file tc_internal.h
/// @brief Header file for Kernel TestCase Example
-#include "../../../tc_common.h"
-#ifndef __EXAMPLES_TESTCASE_DM_TC_INTERNAL_H
-#define __EXAMPLES_TESTCASE_DM_TC_INTERNAL_H
+#ifndef __EXAMPLES_TESTCASE_DM_ITC_INTERNAL_H
+#define __EXAMPLES_TESTCASE_DM_ITC_INTERNAL_H
-#define RETURN_ERR return
+#include "tc_common.h"
#define DM_ITC_PRINT printf
-
/**********************************************************
* ITC Function Declarations
**********************************************************/
#endif
#endif
-#endif /* __EXAMPLES_TESTCASE_KERNEL_TC_INTERNAL_H */
+#endif /* __EXAMPLES_TESTCASE_DM_ITC_INTERNAL_H */
#include "utc_internal.h"
#include "dm_lwm2m.h"
#include "dm_error.h"
-#include "../../../tc_common.h"
+#include "tc_common.h"
#define UTC_DM_IPADDR_LEN 20
#define UTC_DM_SERVER_PORT 6
#define NET_DEVNAME "wl1"
-int total_pass = 0;
-int total_fail = 0;
-
extern sem_t tc_sem;
extern int working_tc;
{
sem_wait(&tc_sem);
working_tc++;
+
+ total_pass = 0;
+ total_fail = 0;
+
#ifndef CONFIG_DM_WIFI
printf("=== Please Setup WiFi Info ===\n");
return 0;
/// @file tc_internal.h
/// @brief Header file for Kernel TestCase Example
-#ifndef __EXAMPLES_TESTCASE_DM_TC_INTERNAL_H
-#define __EXAMPLES_TESTCASE_DM_TC_INTERNAL_H
+#ifndef __EXAMPLES_TESTCASE_DM_UTC_INTERNAL_H
+#define __EXAMPLES_TESTCASE_DM_UTC_INTERNAL_H
-#include "../../../tc_common.h"
-
-#define RETURN_ERR return
+#include "tc_common.h"
#define DM_TC_PRINT printf
int dm_conn_unregi_linkdown_main(void);
#endif
-#endif /* __EXAMPLES_TESTCASE_KERNEL_TC_INTERNAL_H */
+#endif /* __EXAMPLES_TESTCASE_DM_UTC_INTERNAL_H */
/// @file itc_internal.h
/// @brief Header file for System IO TestCase Example
-#include "../../../tc_common.h"
-#ifndef __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
-#define __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
+#ifndef __EXAMPLES_TESTCASE_SYSTEMIO_ITC_INTERNAL_H
+#define __EXAMPLES_TESTCASE_SYSTEMIO_ITC_INTERNAL_H
-#define RETURN_ERR return
+#include "tc_common.h"
//#define IS_PASS(value) value==1?"PASS":"FAIL"
#define SYSIO_ITC_PRINT printf
**********************************************************/
char *Expect_Value(int, int);
-#endif /* __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H */
+#endif /* __EXAMPLES_TESTCASE_SYSTEMIO_ITC_INTERNAL_H */
+++ /dev/null
-/****************************************************************************
- *
- * Copyright 2016 Samsung Electronics All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the specific
- * language governing permissions and limitations under the License.
- *
- ****************************************************************************/
-
-/// @file tc_internal.h
-
-/// @brief Header file for System IO TestCase Example
-#ifndef __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
-#define __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
-
-#define RETURN_ERR return
-//#define IS_PASS(value) value==1?"PASS":"FAIL"
-
-extern int total_pass;
-extern int total_fail;
-
-#define SYSIO_ITC_PRINT printf
-#define SYSIO_TC_UART_PRINT printf
-#define SYSIO_TC_GPIO_PRINT printf
-#define SYSIO_TC_PWM_PRINT printf
-#define SYSIO_TC_I2C_PRINT printf
-
-
-/**********************************************************
-* TC Function Declarations
-**********************************************************/
-char *Expect_Value(int, int);
-
-#endif /* __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H */
/// @file tc_internal.h
/// @brief Header file for System IO TestCase Example
-#ifndef __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
-#define __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H
+#ifndef __EXAMPLES_TESTCASE_SYSTEMIO_UTC_INTERNAL_H
+#define __EXAMPLES_TESTCASE_SYSTEMIO_UTC_INTERNAL_H
-#define RETURN_ERR return
//#define IS_PASS(value) value==1?"PASS":"FAIL"
#include "tc_common.h"
**********************************************************/
char *Expect_Value(int, int);
-#endif /* __EXAMPLES_TESTCASE_SYSTEMIO_TC_INTERNAL_H */
+#endif /* __EXAMPLES_TESTCASE_SYSTEMIO_UTC_INTERNAL_H */
int sysio_utc(int argc, FAR char *argv[])
{
- total_pass = 0;
- total_fail = 0;
int cmdtype = 0;
sem_wait(&tc_sem);