summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-03-10 15:16:16 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-03-10 15:34:07 +0000
commit7a32356e7968565c88dd9a5a4d7552a589ee51f9 (patch)
treefc1c59d60ed10c5453bb4b0adf6f845403b54b9e /demos
parent280165d922732e13d21958ae645f654812f25cfc (diff)
downloadghostpdl-7a32356e7968565c88dd9a5a4d7552a589ee51f9.tar.gz
Tweak api_test to only hide pointers in CLUSTER builds.
Diffstat (limited to 'demos')
-rw-r--r--demos/c/Makefile4
-rw-r--r--demos/c/api_test.c2
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>