aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-12 14:36:57 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-18 17:44:45 +0300
commit71ca7f743f04a1c282aef50705c115398f8e401a (patch)
tree0f19bb5139c99e741d7d5af17659288278fdf568
parent93d6e7e4aa4aa28b56f25bbf4caea48617c9bb17 (diff)
fs-tests: integck: do not use tests_cat_pid
Do not use the shared 'tests_cat_pid' function but use a simple sprintf instead. This is another step to make integck independent of the common code. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--tests/fs-tests/integrity/integck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 546077c..c21b488 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1970,14 +1970,14 @@ static void update_test_data(void)
static int integck(void)
{
- pid_t pid;
+ unsigned int pid;
int64_t rpt;
char dir_name[256];
/* Make our top directory */
pid = getpid();
- normsg("pid is %u", (unsigned) pid);
- tests_cat_pid(dir_name, "integck_test_dir_", pid);
+ normsg("pid is %u", pid);
+ CHECK(sprintf(dir_name, "integck_test_dir_%u", pid) > 0);
if (chdir(dir_name) != -1) {
/* Remove it if it is already there */
tests_clear_dir(".");