Eet tests: Added an hack to test what's wrong with the build bot.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 15 Jan 2012 11:08:02 +0000 (11:08 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 15 Jan 2012 11:08:02 +0000 (11:08 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@67229 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/eet_suite.c

index 6d06da8..afff25c 100644 (file)
@@ -1642,7 +1642,16 @@ START_TEST(eet_identity_simple)
    eet_init();
 
    fail_if(!(file = tmpnam(file)));
-   fail_if(chdir(CERT_DIR));
+   /* Hack to fix issue in buildbot. */
+   int chret = chdir(CERT_DIR);
+   if (chret)
+     {
+        static char CWD[1024];
+        getcwd(CWD, 1024);
+        perror(NULL);
+        printf("TAsn: '%s' '%s'\n", CWD, CERT_DIR);
+     }
+   fail_if(chret);
    fail_if(!(noread = fopen("/dev/null", "w")));
 
    /* Sign an eet file. */