diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-01-27 12:25:51 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-01-27 12:25:51 +0000 |
commit | fbac6dd1760b19e7aca0bd33c949d5f38a164840 (patch) | |
tree | 773542c4a71575bc848d133445e160aed6cb8f2d /tests/Test_tree.c | |
parent | 4df91eef65ff073e59504cdd14e05bee483e457a (diff) | |
download | libtasn1-fbac6dd1760b19e7aca0bd33c949d5f38a164840.tar.gz libtasn1-fbac6dd1760b19e7aca0bd33c949d5f38a164840.tar.bz2 libtasn1-fbac6dd1760b19e7aca0bd33c949d5f38a164840.zip |
Fix make check for objdir != srcdir, reported by Bernard Leak <bernard@brenda-arkle.demon.co.uk>.
Diffstat (limited to 'tests/Test_tree.c')
-rw-r--r-- | tests/Test_tree.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Test_tree.c b/tests/Test_tree.c index 7cdd068..fccbc36 100644 --- a/tests/Test_tree.c +++ b/tests/Test_tree.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2002 Fabio Fiorina + * Copyright (C) 2006 Simon Josefsson * * This file is part of LIBTASN1. * @@ -415,17 +416,22 @@ main(int argc,char *argv[]) int k; int start,end; const char *str_p=NULL; + const char *treefile = getenv ("ASN1TREE"); + + if (!treefile) + treefile = "Test_tree.asn"; printf("\n\n/****************************************/\n"); printf( "/* Test sequence : Test_tree */\n"); printf( "/****************************************/\n\n"); + printf("ASN1TREE: %s\n", treefile); /* Check version */ if(asn1_check_version("0.2.11")==NULL) printf("\nLibrary version check ERROR:\n actual version: %s\n\n",asn1_check_version(NULL)); if(1) - result=asn1_parser2tree("Test_tree.asn",&definitions,errorDescription); + result=asn1_parser2tree(treefile,&definitions,errorDescription); else result=asn1_array2tree(Test_tree_asn1_tab,&definitions,errorDescription); |