Commit eadf37151ba8154b44a918862ddbb3a7d3d8ba14

Edward Thomson 2015-06-29T22:10:45

clar: test chdir

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/clar/sandbox.h b/tests/clar/sandbox.h
index ea9e35c..4b83bf3 100644
--- a/tests/clar/sandbox.h
+++ b/tests/clar/sandbox.h
@@ -65,7 +65,7 @@ static void clar_unsandbox(void)
 	if (_clar_path[0] == '\0')
 		return;
 
-	chdir("..");
+	cl_must_pass(chdir(".."));
 
 	fs_rm(_clar_path);
 }