Displaying 7 results from an estimated 7 matches for "test_error".
Did you mean:
test_errors
2019 Feb 25
0
[PATCH 2/3] v2v: add Var_expander
...ert_equal_stringlist ["FOO"; "BAR"] (Var_expander.scan_variables "%{FOO} %{BAR}");
+ assert_equal_stringlist ["FOO"; "BAR"] (Var_expander.scan_variables "%{FOO} %{BAR} %{FOO}");
+ assert_invalid_variable "FOO/BAR";
+ ()
+
+let test_errors () =
+ let assert_invalid_variable var =
+ let str = "%{" ^ var ^ "}" in
+ assert_raises (Var_expander.Invalid_variable var)
+ (fun () -> Var_expander.replace_fn str replace_none_fn)
+ in
+ assert_invalid_variable "FOO/BAR";
+ assert_inva...
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
...ast_error(100)
Expected result (on english Win XP SP3):
Cannot create another system semaphore.
Actual result:
C
It seems that FormatMessage is being bound to the widechar variant (FormatMessageW) instead of the narrow variant (FormatMessageA).
I''ve included a simple patch, below. For test_error.rb, I''d recommend adding a simple test that verifies the length of the returned message for a known error code is greater than two characters or so; that should work around localization issues causing different messages to be returned.
Proposed patch:
--- error.rb.orig 2008-06-18 15...
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
...quot;; require "test/test_checkboxes.rb"; require
"test/test_content_type.rb"; require "test/test_cookie_class.rb";
require "test/test_cookie_jar.rb"; require "test/test_cookies.rb";
require "test/test_encoded_links.rb"; require "test/test_errors.rb";
require "test/test_field_precedence.rb"; require
"test/test_follow_meta.rb"; require "test/test_form_action.rb"; require
"test/test_form_as_hash.rb"; require "test/test_form_button.rb"; require
"test/test_form_no_inputname.rb";...
2019 Mar 28
0
[PATCH v2 4/4] OCaml tools: output messages into JSON for machine readable
..., "Starting")
+ self.check_json(objects[1], "info", "An information message")
+ self.check_json(objects[2], "warning", "Warning: message here")
+ self.check_json(objects[3], "message", "Finishing")
+
+ def test_error(self):
+ objects = loadJsonFromCommand(["--error"])
+ self.assertEqual(len(objects), 1)
+ self.check_json(objects[0], "error", "Error!")
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/common/mltools/test-tools-messages.sh...
2019 Mar 29
5
[PATCH v2 0/3] v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json.
It produces local files, just like -o local, although the metadata
produced is a JSON file with data that v2v collected in the conversion
process. This can be useful for converting to unsupported destinations,
still based on QEMU/KVM.
In addition to a simple different metadata, it offers a way to relocate
the disks, with
2019 Feb 25
7
[PATCH 0/3] RFC: v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json.
It produces local files, just like -o local, although the metadata
produced is a JSON file with data that v2v collected in the conversion
process. This can be useful for converting to unsupported destinations,
still based on QEMU/KVM.
In addition to a simple different metadata, it offers a way to relocate
the disks, with
2019 Mar 28
8
[PATCH v2 0/4] OCaml tools: output messages as JSON machine
Enhance the output in machine parseable mode, by outputting all the
messages of OCaml tools as JSON to the machine parseable stream.
Related, although not strictly needed for this (and thus can be split
if requested), is the addition of the fd format for the machine
readable stream.
Changes from v1:
- use Obj.magic to convert int -> Unix.file_descr
- add tests
Pino Toscano (4):