From: Wook Song Date: Wed, 28 Aug 2019 04:20:13 +0000 (+0900) Subject: [Tests/Common] Use macro as file extension of shared object X-Git-Tag: accepted/tizen/unified/20190905.060558~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c2a795d78cc7fca60cca30834c5b2ba6870ede2;p=platform%2Fupstream%2Fnnstreamer.git [Tests/Common] Use macro as file extension of shared object This patch replaces '.so' with a macro that is defined as file externsion of shared object according to the platform. Signed-off-by: Wook Song --- diff --git a/tests/common/unittest_common.cpp b/tests/common/unittest_common.cpp index be314c2..9d8330e 100644 --- a/tests/common/unittest_common.cpp +++ b/tests/common/unittest_common.cpp @@ -610,12 +610,18 @@ TEST (conf_custom, env_str_01) fclose (fp); - gchar *f1 = create_null_file (dirf, "libnnstreamer_filter_fantastic.so"); - gchar *f2 = create_null_file (dirf, "libnnstreamer_filter_neuralnetwork.so"); - gchar *f3 = create_null_file (dird, "libnnstreamer_decoder_omg.so"); - gchar *f4 = create_null_file (dird, "libnnstreamer_decoder_wthisgoingon.so"); - gchar *f5 = create_null_file (dircf, "custom_mechanism.so"); - gchar *f6 = create_null_file (dircf, "fastfaster.so"); + gchar *f1 = create_null_file (dirf, "libnnstreamer_filter_fantastic" + NNSTREAMER_SO_FILE_EXTENSION); + gchar *f2 = create_null_file (dirf, "libnnstreamer_filter_neuralnetwork" + NNSTREAMER_SO_FILE_EXTENSION); + gchar *f3 = create_null_file (dird, "libnnstreamer_decoder_omg" + NNSTREAMER_SO_FILE_EXTENSION); + gchar *f4 = create_null_file (dird, "libnnstreamer_decoder_wthisgoingon" + NNSTREAMER_SO_FILE_EXTENSION); + gchar *f5 = create_null_file (dircf, "custom_mechanism" + NNSTREAMER_SO_FILE_EXTENSION); + gchar *f6 = create_null_file (dircf, "fastfaster" + NNSTREAMER_SO_FILE_EXTENSION); EXPECT_TRUE (FALSE != g_setenv ("NNSTREAMER_CONF", filename, TRUE)); EXPECT_TRUE (nnsconf_loadconf (TRUE) == TRUE);