[test] Use EPIPE if ESTRPIPE is not defined like macos
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 29 Aug 2023 09:13:19 +0000 (18:13 +0900)
committerwooksong <wook16.song@samsung.com>
Fri, 1 Sep 2023 00:54:30 +0000 (09:54 +0900)
- Use EPIPE instead of ESTRPIPE where it is not defined.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/unittest_util.c

index 005304e..3d9f176 100644 (file)
 #include "unittest_util.h"
 
 /**
+ * @ref https://github.com/nnstreamer/nnstreamer/commit/7f38acb78c26f0f144b6d6fe7fb887b7431d395b
+ */
+#if !defined(ESTRPIPE)
+#define ESTRPIPE EPIPE
+#endif /* !defined(ESTRPIPE) */
+
+/**
  * @brief Set pipeline state, wait until it's done.
  * @return 0 success, -ESTRPIPE if failed, -ETIME if timeout happens.
  */