From 7a32356e7968565c88dd9a5a4d7552a589ee51f9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 10 Mar 2023 15:16:16 +0000 Subject: Tweak api_test to only hide pointers in CLUSTER builds. --- demos/c/Makefile | 4 ++-- demos/c/api_test.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demos/c/Makefile b/demos/c/Makefile index 5f053410d..8848fc52e 100644 --- a/demos/c/Makefile +++ b/demos/c/Makefile @@ -2,7 +2,7 @@ api_test: api_test.c (cd ../.. && ./autogen.sh) (cd ../.. && make so XCFLAGS="-DCLUSTER") pwd - gcc -fPIC -I../.. api_test.c -DGHOSTPDL=1 -lgpdl -L../../sobin -o api_test + gcc -fPIC -I../.. api_test.c -DCLUSTER=1 -DGHOSTPDL=1 -lgpdl -L../../sobin -o api_test run_api_test: api_test LD_LIBRARY_PATH=../../sobin ./api_test @@ -15,7 +15,7 @@ multi_test: multi_test.c (cd ../.. && ./autogen.sh) (cd ../.. && make so XCFLAGS="-DCLUSTER") pwd - gcc -fPIC -I../.. multi_test.c -DGHOSTPDL=1 -lgpdl -lpthread -L../../sobin -o multi_test + gcc -fPIC -I../.. multi_test.c -DCLUSTER=1 -DGHOSTPDL=1 -lgpdl -lpthread -L../../sobin -o multi_test run_multi_test: multi_test LD_LIBRARY_PATH=../../sobin ./multi_test diff --git a/demos/c/api_test.c b/demos/c/api_test.c index 6560cb79c..6a759c9ed 100644 --- a/demos/c/api_test.c +++ b/demos/c/api_test.c @@ -23,7 +23,9 @@ /* We can't have pointers displayed in the test output, as that will * change the output between runs. The following definition hides * them. */ +#ifdef CLUSTER #define HIDE_POINTERS +#endif #include #include -- cgit v1.2.1