vladikoff / fxa-gecko-tests

fxa-gecko-tests
1 stars 1 forks source link

pointer being freed was not allocated #2

Open pdehaan opened 9 years ago

pdehaan commented 9 years ago

Not sure what exactly the error is telling me, or if I need some additional setup, but I did ye-olde git clone, npm install, and run-tests.sh and got the following barf:

$ ./run-tests.sh

-bash(2135,0x7fff73963300) malloc: *** error for object 0x7f918a416010: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
vladikoff commented 9 years ago

WAT

vladikoff commented 9 years ago

@pdehaan are you on OS X?

Also see the script: https://github.com/vladikoff/fxa-gecko-tests/blob/master/run-tests.sh#L2

vladikoff commented 9 years ago

if you are on linux then you have to set $RUNTIME

pdehaan commented 9 years ago

OSX 10.10.3 Yosemite.

Confirmed I have the firefox-bin runtime.

$ ls /Applications/Firefox.app/Contents/MacOS/firefox-bin
/Applications/Firefox.app/Contents/MacOS/firefox-bin

Do I need to do any other setup or have anything installed in that browser?

vladikoff commented 9 years ago

Do I need to do any other setup or have anything installed in that browser?

nope, the output you should get is:

➜  fxa-gecko-tests git:(master) ./run-tests.sh

  ․

  0 passing (4s)
  1 failing

  1) fxa test about_accounts signup sign up:

      + expected - actual

  ypeError: Object [RPC Client] <rpc-obj-c24927e7-6a19-427a-8d56-d329513e1936> has no method 'checkError'
pdehaan commented 9 years ago

Hhmm, if I run firefox-bin directly, it brings up my Firefox beta (default browser, already running) with the profile chooser. Wonder if it doesn't like that.

vladikoff commented 9 years ago

@pdehaan what if you shut down Firefox?

pdehaan commented 9 years ago

@vladikoff No change. Even if I run without the profile chooser at launch.

vladikoff commented 9 years ago

@gaye what could this be? any ideas?

pdehaan commented 9 years ago

Weird, if I type the command manually, it seems to launch Firefox and I see the Hello/Loop dialog pop up, but both tests fail:

$ ./node_modules/.bin/marionette-mocha --host marionette-firefox-host --timeout 60s --runtime /Applications/Firefox.app/Contents/MacOS/firefox-bin tests/

  ․․

  0 passing (1m)
  2 failing

  1) fxa test about_accounts signup sign up:

      + expected - actual

  ypeError: Object [RPC Client] <rpc-obj-23499c3b-5e40-434e-bb53-c9884c17c316> has no method 'checkError'

  2) loop clicking on hello icon:

      + expected - actual

  rror: timeout of 60000ms exceeded. Ensure the done() callback is being called in this test.

(weirder still is that the mocha errors seem to always lose that first character -- "rror:" versus "Error:", and "ypeError:" versus "TypeError:")

Then again, that does seem consistent with your output above.

vladikoff commented 9 years ago

yeap. thats good :). now we need to get tests

vladikoff commented 9 years ago

@pdehaan here is an example of a python test for the loop panel: http://mxr.mozilla.org/mozilla-central/source/browser/components/loop/test/functional/test_1_browser_call.py#233

If we cannot make that work in JS then we should just use python