search for: test_new

Displaying 10 results from an estimated 10 matches for "test_new".

Did you mean: test_neg
2011 Dec 13
1
[LLVMdev] Issues in converting C++ code to C using llvm and llc
...ude<stdio> int main() { printf("Hello workd from C\n"); return 0; } ------------------------------------- I used following commands % clang -c -emit-llvm test_orig.*EXT* -o test_orig.bc or % llvm-g++ -c -emit-llvm test_orig.*EXT* -o test_orig.bc % llc -march=c test_orig.bc -o test_new.c and then I simply used gcc to compile test_new.c gcc test_new.c When *EXT* is .c then everything works fine however when it is .cpp then when I try to recompile the test_new.c using gcc it says undefiend references to std::cout, std::basic_ostream, std::ios_base I thought that llvm should be a...
2016 Mar 16
2
Using Asterisk to play Icecast streams
Hi all, A long time ago I built an Asterisk system that plays IceCast streams via moh. extensions.conf: Exten => moh,1,Set(SIP_CODEC=ulaw) Exten => moh,2,Answer Exten => moh,3,MusicONHold(test_new) Exten => moh,4,Hangup musiconhold.conf ; test_new [test_new] mode=custom application=/etc/mystreams/test_new.sh test_new.sh #!/bin/bash wget -q -T 120 -O - 'http://myURL.com/my_test_stream' | /usr/local/bin/madplay -Q -o raw:- --mono -R 8000 -a -10 - Over all this does work good howe...
2006 Oct 21
6
test_create gets 200 instead of :success
...flash[:notice] = ''Borrower could not be added.'' render :action => ''new'' end end Setting breakpoints at different places in the above code indicates that my test is going through the rescue section. Here''s the test code: def test_new get :new assert_response :success assert_template ''new'' end def test_create num_borrowers = Borrower.count post :create, :borrower => {:SSN => ''000'', :LastName => ''Anyone''} assert_response :redirect #...
2006 Dec 21
4
Stubbing Kernel#open
...le_search_california.html'').read Object.any_instance.expects(:open).with(''http://www.google.com/search?q=california'').returns(stub(:body => body)) @response = GoogleSearch.new(''california'') assert_equal body, @response.body 1) Failure: test_new(GoogleSearchTest) [(eval):1:in `open'' /Users/kev/code/vanna/config/../lib/google_search.rb:5:in `initialize'' ./test/unit/google_search_test.rb:7:in `test_new'']: Unexpected message :open(''http://www.google.com/search?q=california'') sent to #...
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
...:post do verifications_path(@user) returns a string like "/users/3/ verifications". That eventually gets sent to url_for, which expects a hash. And then it blows up. It''s especially disconcerting since the documentation shows form_tag as accepting a string. Joe 1) Error: test_new(VerificationsControllerTest): ActionView::TemplateError: can''t convert String into Hash On line #8 of app/views/verifications/new.rhtml 8: <% form_tag verifications_path(@user), :method => :post do %> vendor/rails/actionpack/lib/action_controller/url_rewriter.rb: 38...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
....rb b/src/test/functional/host_controller_test.rb index 497fe5a..caf198d 100644 --- a/src/test/functional/host_controller_test.rb +++ b/src/test/functional/host_controller_test.rb @@ -59,47 +59,6 @@ class HostControllerTest < Test::Unit::TestCase assert assigns(:host).valid? end - def test_new - get :new, :hardware_pool_id => pools(:default).id - - assert_response :redirect - assert_redirected_to :controller => 'hardware', :action => 'show', :id => pools(:default).id - end - - def test_create - num_hosts = Host.count - - post :create, :host =&...
2006 Sep 26
0
some help with functional testing of nested routes
...@response = ActionController::TestResponse.new @first_id = products(:first).id @category_id = categories(:first).id end def test_index # HTTP GET get :index assert_response :success assert assigns(:products) assert_template ''index'' end def test_new # HTTP GET get :new assert_response :success assert_template ''new'' assert_not_nil assigns(:product) end def test_create num_records = Product.count # HTTP POST post :create, :product => {:name => ''New Test Product''}...
2004 Mar 09
6
win32-mmap test suite
...;win32") $:.unshift Dir.pwd end require "test/unit" require "win32/mmap" include Win32 class TC_Mmap < Test::Unit::TestCase def setup @a = 1 end def test_version assert_equal("0.0.1",Mmap::VERSION,"Bad version") end def test_new assert_nothing_raised{ Mmap.new("Foo") } assert_nothing_raised{ Mmap.new("Foo",16*1024) } assert_nothing_raised{ Mmap.new("Foo",16*1024,"test") } assert_raises(ArgumentError){ Mmap.new("Foo",16*1024,"test",true,tru...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...ibswfdec/swfdec.h> #include "swfdec_interaction.h" +typedef struct _Test Test; +struct _Test { + char * filename; /* name of the file to be tested */ + char * output; /* test result */ + gboolean success; /* TRUE if test was successful, FALSE on error */ +}; + +static Test * +test_new (char *filename) +{ + Test *test; + + test = g_slice_new0 (Test); + test->filename = filename; + return test; +} + +static void +test_free (Test *test) +{ + g_free (test->filename); + g_free (test->output); + g_slice_free (Test, test); +} + +static int +test_compare (gconstpointer a...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...DEC_TYPE_TEST_TEST, &test, "nn|i", &x, &y, &button); + + if (!swfdec_test_test_ensure_player (test)) + return; + + button = CLAMP (button, 1, 32); + swfdec_player_mouse_release (test->player, x, y, button); +} + SWFDEC_TEST_FUNCTION ("Test", swfdec_test_test_new, swfdec_test_test_get_type) void swfdec_test_test_new (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, commit 98b5d6be244ad21d3ab3cef95b07bf538acd290f Author: Benjamin Otte <otte at gnome.org> Date: Tue Jan 8 12:53:32 2008 +0100 move files that need a custom script to their...