[GTK] Fix a build warning in JavaScriptCore/API/tests/testapi.c
https://bugs.webkit.org/show_bug.cgi?id=199824

Patch by Joonghun Park <pjh0718@gmail.com> on 2019-07-16
Reviewed by Alex Christensen.

* API/tests/testapi.c:
(main):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@247488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/API/tests/testapi.c b/Source/JavaScriptCore/API/tests/testapi.c
index fa24534..3150fdb 100644
--- a/Source/JavaScriptCore/API/tests/testapi.c
+++ b/Source/JavaScriptCore/API/tests/testapi.c
@@ -1389,7 +1389,8 @@
 
 #if !OS(WINDOWS)
     char resolvedPath[PATH_MAX];
-    realpath(argv[0], resolvedPath); 
+    if (!realpath(argv[0], resolvedPath))
+        fprintf(stdout, "Could not get the absolute pathname for: %s\n", argv[0]);
     char* newCWD = dirname(resolvedPath);
     if (chdir(newCWD))
         fprintf(stdout, "Could not chdir to: %s\n", newCWD);
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog
index 1acebbd..1a6cfd2 100644
--- a/Source/JavaScriptCore/ChangeLog
+++ b/Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,13 @@
+2019-07-16  Joonghun Park  <pjh0718@gmail.com>
+
+        [GTK] Fix a build warning in JavaScriptCore/API/tests/testapi.c
+        https://bugs.webkit.org/show_bug.cgi?id=199824
+
+        Reviewed by Alex Christensen.
+
+        * API/tests/testapi.c:
+        (main):
+
 2019-07-15  Keith Miller  <keith_miller@apple.com>
 
         JSGlobalObject type macros should support feature flags and WeakRef should have one