diff options
Diffstat (limited to 'libical/src/test/testvcal.c')
-rw-r--r-- | libical/src/test/testvcal.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libical/src/test/testvcal.c b/libical/src/test/testvcal.c index 4777162623..f82adffcc8 100644 --- a/libical/src/test/testvcal.c +++ b/libical/src/test/testvcal.c @@ -41,8 +41,16 @@ int main(int argc, char* argv[]) { VObject *vcal = 0; icalcomponent *comp; + char* file; - vcal = Parse_MIME_FromFileName(argv[1]); + if (argc != 2){ + file = "../../test-data/user-cal.vcf"; + } else { + file = argv[1]; + } + + + vcal = Parse_MIME_FromFileName(file); assert(vcal != 0); |