WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
62935
[GTK] Fix GTK unit tests failures when WebKit is build outside repository directory.
https://bugs.webkit.org/show_bug.cgi?id=62935
Summary
[GTK] Fix GTK unit tests failures when WebKit is build outside repository dir...
Lukasz Slachciak
Reported
2011-06-18 12:15:23 PDT
WebKit can be build with WEBKITOUTPUTDIR env variable set using build-webkit script. In this case WEBKITOUTPUDIR may be outside repository structure. This causes testmimehandling and testwebview to fail because they use external test files in WebKit Source directory. This bug fixes this issue introducing optional environment variable WEBKITREPODIR
Attachments
testutils1.patch
(1.73 KB, patch)
2011-06-18 12:20 PDT
,
Lukasz Slachciak
no flags
Details
Formatted Diff
Diff
Patch
(1.73 KB, patch)
2011-06-22 01:59 PDT
,
Lukasz Slachciak
no flags
Details
Formatted Diff
Diff
Patch2
(1.75 KB, patch)
2011-06-22 02:54 PDT
,
Lukasz Slachciak
gustavo
: review-
Details
Formatted Diff
Diff
Fix GTK unit test failures
(3.27 KB, patch)
2011-07-13 14:02 PDT
,
Lukasz Slachciak
gustavo
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Lukasz Slachciak
Comment 1
2011-06-18 12:20:40 PDT
Created
attachment 97704
[details]
testutils1.patch
Lukasz Slachciak
Comment 2
2011-06-19 00:17:46 PDT
Subscribing Arno and Gustavo involved in connected bug (this one improves it) - 34940 [Gtk] testwebview does not work when called with absolute path
Lukasz Slachciak
Comment 3
2011-06-22 01:59:06 PDT
Created
attachment 98135
[details]
Patch
Lukasz Slachciak
Comment 4
2011-06-22 02:54:20 PDT
Created
attachment 98142
[details]
Patch2 Updated code style
Gustavo Noronha (kov)
Comment 5
2011-07-11 07:55:40 PDT
Comment on
attachment 98142
[details]
Patch2 View in context:
https://bugs.webkit.org/attachment.cgi?id=98142&action=review
> Source/WebKit/gtk/tests/test_utils.c:34 > + /* user can set location of the webkit repository directory if it differs from build directory */ > + const char* repo_path = g_getenv("WEBKITREPODIR"); > + if (repo_path) { > + if (g_chdir(repo_path)) { > + return -1; > + } > + } > + else if (g_path_is_absolute(executable_path)) {
Indentation seems quite off here, or is it the patch viewer? The inner if should not have bracers (this file has plenty of this problem, unfortunately), and the else if should be in the same line as the }. Also, given this is a C file, the * should be on the right side. What do you think of doing a style cleanup on this file? ;)
Lukasz Slachciak
Comment 6
2011-07-13 13:56:38 PDT
Comment on
attachment 98142
[details]
Patch2 View in context:
https://bugs.webkit.org/attachment.cgi?id=98142&action=review
>> Source/WebKit/gtk/tests/test_utils.c:34 >> + else if (g_path_is_absolute(executable_path)) { > > Indentation seems quite off here, or is it the patch viewer? The inner if should not have bracers (this file has plenty of this problem, unfortunately), and the else if should be in the same line as the }. Also, given this is a C file, the * should be on the right side. What do you think of doing a style cleanup on this file? ;)
Indentation fixed. Coding style cleanup done. Unfortunately this file has exception in check-webkit-style so it is not taken into account when checking style
Lukasz Slachciak
Comment 7
2011-07-13 14:02:05 PDT
Created
attachment 100705
[details]
Fix GTK unit test failures + coding style enhancements
Gustavo Noronha (kov)
Comment 8
2011-07-14 06:28:42 PDT
Comment on
attachment 100705
[details]
Fix GTK unit test failures View in context:
https://bugs.webkit.org/attachment.cgi?id=100705&action=review
> Source/WebKit/gtk/tests/test_utils.c:31 > + if (repoPath) { > + if (g_chdir(repoPath)) > + return -1;
I believe this return is still misindented; there is a tab here. I'll land it manually and fix it before doing it.
Gustavo Noronha (kov)
Comment 9
2011-07-14 06:31:45 PDT
Comment on
attachment 100705
[details]
Fix GTK unit test failures
http://trac.webkit.org/changeset/90994
Lukasz Slachciak
Comment 10
2011-07-14 14:27:15 PDT
Gustavo, thank you for review and commit update.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug