Fix build error 23/256223/1 accepted/tizen/unified/20210331.104644 submit/tizen/20210331.055612
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 31 Mar 2021 05:49:20 +0000 (14:49 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 31 Mar 2021 05:49:33 +0000 (14:49 +0900)
[  101s] /home/abuild/rpmbuild/BUILD/crash-worker-6.5.16/tests/system/utils/
libbugreport-servicetest.c:46:51: error: 'CS_ERR_NO_ERROR' undeclared (first use in this function)
[  101s]    46 |  printf("res: %s (%d)\nreport_path: %s\n", res == CS_ERR_NO_ERROR ? "true" ...
[  101s]       |                                                   ^~~~~~~~~~~~~~~

Change-Id: I5f9588ee8c3b9f9be15169a848ac6082e67ce042
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
tests/system/utils/CMakeLists.txt
tests/system/utils/libbugreport-servicetest.c

index f8b7d6a..a469946 100644 (file)
@@ -14,6 +14,7 @@ INCLUDE(FindPkgConfig)
 pkg_check_modules(helper_pkgs REQUIRED
                   gio-2.0
                   bugreport
+                  diagnostics
                   dlog)
 
 TARGET_LINK_LIBRARIES(libbugreport-servicetest bugreport ${helper_pkgs_LDFLAGS})
index 12a9e5c..9d928db 100644 (file)
@@ -1,4 +1,5 @@
 #include <libbugreport.h>
+#include <diagnostics.h>
 
 #include <linux/limits.h>
 #include <stdio.h>