From: Andres Mejia Date: Wed, 17 Aug 2011 01:39:07 +0000 (-0400) Subject: Make sure to go back to previous directory after test run. X-Git-Tag: v3.0.0a~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3d2aa8ace073f16733c4ee1c61906dc01cdb2d;p=thirdparty%2Flibarchive.git Make sure to go back to previous directory after test run. SVN-Revision: 3633 --- diff --git a/tar/test/test_option_C_upper.c b/tar/test/test_option_C_upper.c index 8fb3f47c1..afe22f245 100644 --- a/tar/test/test_option_C_upper.c +++ b/tar/test/test_option_C_upper.c @@ -134,6 +134,7 @@ DEFINE_TEST(test_option_C_upper) r = systemf("%s -cf archive.tar ../d1/file1 -C 2>write.err", testprog); assert(r != 0); assertNonEmptyFile("write.err"); + assertChdir(".."); /* * Test 8: -C used with meaningless option '' @@ -143,4 +144,5 @@ DEFINE_TEST(test_option_C_upper) r = systemf("%s -cf archive.tar ../d1/file1 -C '' 2>write.err", testprog); assert(r != 0); assertNonEmptyFile("write.err"); + assertChdir(".."); }