Mercurial > hg > th-libs
comparison tests.c @ 748:3f59c5ab7fea
Add #ifdef to avoid unused variable warning.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 Dec 2022 13:20:56 +0200 |
parents | 0c90dd46c49f |
children | feadd3678d2e |
comparison
equal
deleted
inserted
replaced
747:57ccf6402d2a | 748:3f59c5ab7fea |
---|---|
800 // | 800 // |
801 if (test_set_start("file functions")) | 801 if (test_set_start("file functions")) |
802 { | 802 { |
803 char *home = th_get_home_dir(), *cfg = th_get_config_dir(); | 803 char *home = th_get_home_dir(), *cfg = th_get_config_dir(); |
804 th_stat_data stat; | 804 th_stat_data stat; |
805 #ifdef TH_PLAT_UNIX | |
805 int res; | 806 int res; |
807 #endif | |
806 | 808 |
807 TEST1A("%s", home, !=, NULL); | 809 TEST1A("%s", home, !=, NULL); |
808 TEST1A("%s", cfg, !=, NULL); | 810 TEST1A("%s", cfg, !=, NULL); |
809 | 811 |
810 TEST1(th_stat_path(home, &stat) == true); | 812 TEST1(th_stat_path(home, &stat) == true); |