# HG changeset patch # User Matti Hamalainen # Date 1671621440 -7200 # Node ID 0c90dd46c49f8d78bb3190db1248719b3bc9fea2 # Parent 4181d43f91f9fa094a8770378fa92dc0d2bb9649 Only do certain th_file tests if we are compiled for *NIX (Win/DOS specific tests tbd later, if ever.) diff -r 4181d43f91f9 -r 0c90dd46c49f tests.c --- a/tests.c Wed Dec 14 22:58:12 2022 +0200 +++ b/tests.c Wed Dec 21 13:17:20 2022 +0200 @@ -810,6 +810,7 @@ TEST1(th_stat_path(home, &stat) == true); TEST1A("%d", (stat.flags & TH_IS_DIR), !=, 0); +#ifdef TH_PLAT_UNIX TEST1(th_stat_path("/nonexist", &stat) == false); TEST1(th_stat_path("/root", &stat) == true); TEST1A("%d", (stat.flags & TH_IS_WRITABLE), ==, 0); @@ -821,6 +822,7 @@ TEST1(th_stat_path("/tmp/thlibtest/foobar/baz", &stat) == true); TEST1A("%d", (stat.flags & TH_IS_DIR), !=, 0); } +#endif } //