From 0f99edbc83f12c840ef2d764ddbd0337537c34d9 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 5 Sep 2019 16:05:55 -0300 Subject: [PATCH] Using product name for testing. --- client/src/testprogram/testprogram.cc | 5 +++-- common/src/include/config.h.in | 1 + server/src/testprogram/testprogram.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index 3bb2260..ee108f2 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -28,7 +28,7 @@ */ /** - * @file src/lib3270++/testprogram/testprogram.cc + * @file client/src/testprogram/testprogram.cc * * @brief * @@ -36,6 +36,7 @@ * */ + #include #include #include #include @@ -137,7 +138,7 @@ int main(int argc, char **argv) { - const char * session = "pw3270:a"; + const char * session = LIB3270_STRINGIZE_VALUE_OF(PRODUCT_NAME) ":a"; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" diff --git a/common/src/include/config.h.in b/common/src/include/config.h.in index ea13970..77eb6b9 100644 --- a/common/src/include/config.h.in +++ b/common/src/include/config.h.in @@ -34,6 +34,7 @@ #undef PACKAGE_NAME #undef PACKAGE_VERSION #undef PACKAGE_RELEASE + #undef PRODUCT_NAME #undef HAVE_ICONV #undef ICONV_CONST diff --git a/server/src/testprogram/testprogram.c b/server/src/testprogram/testprogram.c index 45f3b3d..ea5c7c6 100644 --- a/server/src/testprogram/testprogram.c +++ b/server/src/testprogram/testprogram.c @@ -50,7 +50,7 @@ #else const gchar * plugin_path = G_STRINGIFY(PLUGIN_PATH); #endif // _WIN32 - const gchar * session_name = "pw3270"; + const gchar * session_name = G_STRINGIFY(PRODUCT_NAME); const gchar * plugin_name = "ipcserver." G_MODULE_SUFFIX; /*---[ Implement ]----------------------------------------------------------------------------------*/ -- libgit2 0.21.2