diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-03-10 15:16:16 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-03-13 09:08:11 +0000 |
commit | 11b4bc66d72edc52f5d0aabcc2bbb331c38f4cf9 (patch) | |
tree | c39556b15d35fc61841e5eac974b3431604fdede | |
parent | 0374c1831d8f25f265792f41b905794e9f2530d1 (diff) |
Tweak api_test to only hide pointers in CLUSTER builds.
-rw-r--r-- | demos/c/Makefile | 4 | ||||
-rw-r--r-- | 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 <stdio.h> #include <stdlib.h> |