aboutsummaryrefslogtreecommitdiffstats
path: root/t/test_packages.c
diff options
context:
space:
mode:
authorJason Woodward2008-12-14 19:27:10 +0000
committerJason Woodward2008-12-14 19:27:10 +0000
commit89b9e221042b9e962c5da9a0a34b3a70958e06f8 (patch)
treeca8cc9846190d0b2d7616fd584c5e69df4e281f4 /t/test_packages.c
parent89054ef84f161b306dbded77bebfd6812a743329 (diff)
downloadslapt-get-89b9e221042b9e962c5da9a0a34b3a70958e06f8.tar.gz
check error return on chdir
Diffstat (limited to 't/test_packages.c')
-rw-r--r--t/test_packages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test_packages.c b/t/test_packages.c
index 5fcda61..f4ebe74 100644
--- a/t/test_packages.c
+++ b/t/test_packages.c
@@ -358,7 +358,7 @@ START_TEST (test_network)
rc->progress_cb = _progress_cb; /* silence */
/* must chdir to working dir */
- chdir(rc->working_dir);
+ fail_unless (chdir(rc->working_dir) == 0);
/* write pkg data to disk
void slapt_write_pkg_data(const char *source_url,FILE *d_file,
@@ -378,7 +378,7 @@ START_TEST (test_network)
fail_unless (slapt_update_pkg_cache(rc) == 0);
- chdir(cwd);
+ fail_unless (chdir(cwd) == 0);
slapt_free_rc_config(rc);
free(cwd);
}