Mercurial > hg > th-libs
changeset 745:0c90dd46c49f
Only do certain th_file tests if we are compiled for *NIX (Win/DOS specific
tests tbd later, if ever.)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 Dec 2022 13:17:20 +0200 |
parents | 4181d43f91f9 |
children | a557d1b2a356 |
files | tests.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 } //