summaryrefslogtreecommitdiff
path: root/testbed
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2021-11-07 18:00:37 +0100
committerMarti Maria <marti.maria@littlecms.com>2021-11-07 18:00:37 +0100
commita37361adf91baf37121ff283773c5eafa9045473 (patch)
treee61122f3d027c1e7685373e1453df4d0da0c4589 /testbed
parentafbe6cf679df7381fb330a14cfba7feec46325a5 (diff)
downloadlcms2-a37361adf91baf37121ff283773c5eafa9045473.tar.gz
try to fix github action
by adding testbed command line param
Diffstat (limited to 'testbed')
-rw-r--r--testbed/testcms2.c4
-rwxr-xr-xtestbed/testcms2.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 0322d6d..4098b59 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -9179,6 +9179,10 @@ int main(int argc, char* argv[])
Exhaustive = 1;
printf("Running exhaustive tests (will take a while...)\n\n");
}
+ else
+ if ((argc == 3) && strcmp(argv[1], "--chdir") == 0) {
+ CHDIR(argv[2]);
+ }
#ifdef LCMS_FAST_EXTENSIONS
printf("Installing fast float extension ...");
diff --git a/testbed/testcms2.h b/testbed/testcms2.h
index f15ae3f..97beb6b 100755
--- a/testbed/testcms2.h
+++ b/testbed/testcms2.h
@@ -40,6 +40,11 @@
#ifdef CMS_IS_WINDOWS_
# include <io.h>
+# include <direct.h>
+# define CHDIR(a) _chdir(a)
+#else
+# include <unistd.h>
+# define CHDIR(a) chdir(a)
#endif
#define cmsmin(a, b) (((a) < (b)) ? (a) : (b))