Update zoneinfo database.
[dragonfly/netmp.git] / contrib / sendmail / libsm / t-path.c
blobfa6e3453b2351e525aab63982c7eff81b1e54044
1 /*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 */
10 #include <sm/gen.h>
11 SM_IDSTR(id, "@(#)$Id: t-path.c,v 1.8 2001/09/11 04:04:49 gshapiro Exp $")
13 #include <string.h>
14 #include <sm/path.h>
15 #include <sm/test.h>
17 int
18 main(argc, argv)
19 int argc;
20 char **argv;
22 char *r;
24 sm_test_begin(argc, argv, "test path handling");
26 SM_TEST(sm_path_isdevnull(SM_PATH_DEVNULL));
27 r = "/dev/null";
28 SM_TEST(sm_path_isdevnull(r));
29 r = "/nev/dull";
30 SM_TEST(!sm_path_isdevnull(r));
31 r = "nul";
32 SM_TEST(!sm_path_isdevnull(r));
34 return sm_test_end();