RESOLVED WORKSFORME 64205
With NRWT, many plugin-related tests fail
https://bugs.webkit.org/show_bug.cgi?id=64205
Summary With NRWT, many plugin-related tests fail
Simon Fraser (smfr)
Reported 2011-07-08 14:34:05 PDT
I see lots of plugin-related tests failing with NRWT, in a Mac debug build on SnowLeopard. TestNetscapePlugIn.plugin exists in my WebKitBuild/Debug dir. I'm running with the --debug flag.
Attachments
Webarchive of results (186.46 KB, application/x-webarchive)
2011-07-08 14:34 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2011-07-08 14:34:43 PDT
Created attachment 100165 [details] Webarchive of results Attached results from a debug build at r90640.
Adam Barth
Comment 2 2011-07-08 14:35:11 PDT
Thanks Simon.
Simon Fraser (smfr)
Comment 3 2011-07-08 14:38:36 PDT
DRT has addTestPluginsToPluginSearchPath().
Eric Seidel (no email)
Comment 4 2011-07-09 03:42:49 PDT
Thanks! I'll take a look this weekend.
Eric Seidel (no email)
Comment 5 2011-07-10 12:05:21 PDT
Hm... % new-run-webkit-tests plugins All 105 tests ran as expected. All plugin tests pass for me on my machine. I can't see the diffs from your run. BUt if you zip up your /tmp/layout-test-results directory after a run, I'm happy to take a look.
Eric Seidel (no email)
Comment 6 2011-07-10 12:08:09 PDT
static void addTestPluginsToPluginSearchPath(const char* executablePath) { NSString *pwd = [[NSString stringWithUTF8String:executablePath] stringByDeletingLastPathComponent]; [WebPluginDatabase setAdditionalWebPlugInPaths:[NSArray arrayWithObject:pwd]]; [[WebPluginDatabase sharedDatabase] refresh]; } Is the function you referenced before. It adds the build directory of DRT to the plugin search path. Which looks correct. Are you running new-run-webkit-tests directly (or is run-webkit-tests calling it for you?) I assume you're running the tests with WebKit1? (Right now run-webkit-tests will call old-run-webkit-tests if you run it for WebKit2, since NRWT's WebKit2 support isn't quite done yet. See bug 56729.)
Eric Seidel (no email)
Comment 7 2011-07-10 12:10:06 PDT
I tried deleting TestNetscapePlugin.plugin from my build directory, and NRWT correctly re-built it (I suspect it might not know how to, but it did!)
Eric Seidel (no email)
Comment 8 2011-07-10 12:11:29 PDT
I tried executing new-run-webkit-tests --debug plugins (explicitly adding the --debug flag in case that might confuse things) but that didn't repro the failures either. :(
Eric Seidel (no email)
Comment 9 2011-07-10 12:11:51 PDT
I'm testing on: ProductName: Mac OS X ProductVersion: 10.6.8 BuildVersion: 10K540
Eric Seidel (no email)
Comment 10 2011-07-10 12:18:47 PDT
For completeness, I should mention I was testing with r90548.
Simon Fraser (smfr)
Comment 11 2011-07-10 22:47:46 PDT
I'll investigate.
Simon Fraser (smfr)
Comment 12 2011-07-12 14:56:42 PDT
I had a broken symlink in ~/Library/Internet Plugins
Note You need to log in before you can comment on or make changes to this bug.