Commit 0f99edbc83f12c840ef2d764ddbd0337537c34d9
1 parent
ed74738b
Exists in
master
and in
1 other branch
Using product name for testing.
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
client/src/testprogram/testprogram.cc
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | */ |
29 | 29 | |
30 | 30 | /** |
31 | - * @file src/lib3270++/testprogram/testprogram.cc | |
31 | + * @file client/src/testprogram/testprogram.cc | |
32 | 32 | * |
33 | 33 | * @brief |
34 | 34 | * |
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | * |
37 | 37 | */ |
38 | 38 | |
39 | + #include <config.h> | |
39 | 40 | #include <getopt.h> |
40 | 41 | #include <cstdlib> |
41 | 42 | #include <lib3270/ipc.h> |
... | ... | @@ -137,7 +138,7 @@ |
137 | 138 | |
138 | 139 | int main(int argc, char **argv) { |
139 | 140 | |
140 | - const char * session = "pw3270:a"; | |
141 | + const char * session = LIB3270_STRINGIZE_VALUE_OF(PRODUCT_NAME) ":a"; | |
141 | 142 | |
142 | 143 | #pragma GCC diagnostic push |
143 | 144 | #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" | ... | ... |
common/src/include/config.h.in
server/src/testprogram/testprogram.c
... | ... | @@ -50,7 +50,7 @@ |
50 | 50 | #else |
51 | 51 | const gchar * plugin_path = G_STRINGIFY(PLUGIN_PATH); |
52 | 52 | #endif // _WIN32 |
53 | - const gchar * session_name = "pw3270"; | |
53 | + const gchar * session_name = G_STRINGIFY(PRODUCT_NAME); | |
54 | 54 | const gchar * plugin_name = "ipcserver." G_MODULE_SUFFIX; |
55 | 55 | |
56 | 56 | /*---[ Implement ]----------------------------------------------------------------------------------*/ | ... | ... |